mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Fix dead initialization, spotted by clang analyzer
Fix clang warnings: /src/qemu/block/vvfat.c:1102:9: warning: Value stored to 'index3' during its initialization is never read int index3=index1+1; /src/qemu/cmd.c:290:15: warning: Value stored to 'p' during its initialization is never read char *p = result; Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
f64052478e
commit
88bf79500b
2 changed files with 3 additions and 2 deletions
3
cmd.c
3
cmd.c
|
@ -287,7 +287,8 @@ static char *qemu_strsep(char **input, const char *delim)
|
|||
{
|
||||
char *result = *input;
|
||||
if (result != NULL) {
|
||||
char *p = result;
|
||||
char *p;
|
||||
|
||||
for (p = result; *p != '\0'; p++) {
|
||||
if (strchr(delim, *p)) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue