diff options
author | kmoore <kmoore@FreeBSD.org> | 2012-06-01 02:27:58 +0800 |
---|---|---|
committer | kmoore <kmoore@FreeBSD.org> | 2012-06-01 02:27:58 +0800 |
commit | f9fcb945370877b11f4846727251b7962c209b6e (patch) | |
tree | 6e3164c434c42ecee182c216d0908446a87e274d /x11/menu-cache | |
parent | c0c3edfb26ae589e19dad6db078f7a0e2804d1e9 (diff) | |
download | freebsd-ports-gnome-f9fcb945370877b11f4846727251b7962c209b6e.tar.gz freebsd-ports-gnome-f9fcb945370877b11f4846727251b7962c209b6e.tar.zst freebsd-ports-gnome-f9fcb945370877b11f4846727251b7962c209b6e.zip |
Fix build with clang
PR: 166221
Submitted by: Shane Ambler <FreeBSD@Shaneware.biz>
Diffstat (limited to 'x11/menu-cache')
-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; |