summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 15:27:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 15:27:14 +0000
commit88bf79500b7659aa7978b445393479d76e9c0c9e (patch)
tree6c2f8fd851140f0c3caea9f67a7715bea112e004 /cmd.c
parentf64052478e3828393aea4248da4047b86d48f83f (diff)
downloadqemu-88bf79500b7659aa7978b445393479d76e9c0c9e.tar.gz
qemu-88bf79500b7659aa7978b445393479d76e9c0c9e.tar.bz2
qemu-88bf79500b7659aa7978b445393479d76e9c0c9e.zip
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>
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index cc70311b9f..2336334eea 100644
--- a/cmd.c
+++ b/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;