projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdesktopappinfo: fix a crasher
[platform/upstream/glib.git]
/
gio
/
gdesktopappinfo.c
diff --git
a/gio/gdesktopappinfo.c
b/gio/gdesktopappinfo.c
index
8d1bc69
..
0b72803
100644
(file)
--- a/
gio/gdesktopappinfo.c
+++ b/
gio/gdesktopappinfo.c
@@
-663,7
+663,7
@@
expand_strv (gchar ***strv_ptr,
goto no_add;
/* Don't add duplicates already in the list */
- for (j = 0;
strv[j]
; j++)
+ for (j = 0;
j < strv_len
; j++)
if (g_str_equal (to_add[i], strv[j]))
goto no_add;