mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 00:18:44 +02:00
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:
committed by
Alexander Larsson
parent
c2237ec397
commit
5241d96b21
@@ -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 *));
|
||||
|
Reference in New Issue
Block a user