diff options
-rw-r--r-- | x11/menu-cache/files/patch-libmenu-cache__menu-cache.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c b/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c new file mode 100644 index 000000000000..eba3d912f996 --- /dev/null +++ b/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c @@ -0,0 +1,20 @@ +--- ./libmenu-cache/menu-cache.c.orig 2012-03-18 14:12:13.000000000 +1030 ++++ ./libmenu-cache/menu-cache.c 2012-03-18 14:13:02.000000000 +1030 +@@ -226,7 +226,7 @@ + + /* file name */ + if( G_UNLIKELY( ! fgets( line, G_N_ELEMENTS(line) - 1, f ) )) +- return; ++ return NULL; + len = strlen( line ); + if( G_LIKELY(len > 1) ) + item->file_name = g_strndup( line, len - 1 ); +@@ -240,7 +240,7 @@ + + /* desktop file dir */ + if( G_UNLIKELY( ! fgets( line, G_N_ELEMENTS(line) - 1, f ) )) +- return; ++ return NULL; + idx = atoi( line ); + if( G_LIKELY( idx >=0 && idx < cache->n_all_used_files ) ) + item->file_dir = cache->all_used_files[ idx ] + 1; |