From: Blue Swirl Date: Tue, 9 Jun 2009 17:51:21 +0000 (+0300) Subject: Fix warning X-Git-Tag: v0.11.0-rc0~444 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c5947808ef72dce9906000704a4827f1ea5c4517;p=qemu-xen-4.5-testing.git Fix warning Signed-off-by: Blue Swirl --- diff --git a/vl.c b/vl.c index fcf853222..c3dc26a1d 100644 --- a/vl.c +++ b/vl.c @@ -4806,7 +4806,7 @@ static char *find_datadir(const char *argv0) len = GetModuleFileName(NULL, buf, sizeof(buf) - 1); if (len == 0) { - return len; + return NULL; } buf[len] = 0;