Fix sparse warnings (#519489)

2008-03-06  Alexander Larsson  <alexl@redhat.com>

        * gdesktopappinfo.c:
        * gfilemonitor.c:
        * gthemedicon.c:
        * gunionvolumemonitor.c:
        * gunixmounts.c:
        * tests/g-file.c:
        * tests/live-g-file.c:
        * xdgmime/xdgmimecache.c:
	Fix sparse warnings (#519489)


svn path=/trunk/; revision=6632
This commit is contained in:
Alexander Larsson
2008-03-06 09:53:35 +00:00
committed by Alexander Larsson
parent c2237ec397
commit 5241d96b21
9 changed files with 26 additions and 77 deletions

View File

@@ -910,7 +910,7 @@ _xdg_mime_cache_list_mime_parents (const char *mime)
}
}
}
all_parents[p++] = 0;
all_parents[p++] = NULL;
result = (char **) malloc (p * sizeof (char *));
memcpy (result, all_parents, p * sizeof (char *));