summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-04-01 23:23:16 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-04-02 07:20:33 +0100
commit1d944bcd1fcd1e4a8afb26758c98fa3b72786798 (patch)
tree81469eff78b63c9d7b0a74097992a445f49f5eed /programs
parentf0b77b600621da2b286954bc74472d09c1c8df42 (diff)
downloadgvfs-1d944bcd1fcd1e4a8afb26758c98fa3b72786798.tar.gz
gvfs-tree: End GOptionEntry array with NULL
Prevent a segfault (revealed on OpenBSD) by null-terminating the GOptionEntry array. https://bugzilla.gnome.org/show_bug.cgi?id=727447
Diffstat (limited to 'programs')
-rw-r--r--programs/gvfs-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/gvfs-tree.c b/programs/gvfs-tree.c
index 8e18f77e..412f722d 100644
--- a/programs/gvfs-tree.c
+++ b/programs/gvfs-tree.c
@@ -35,6 +35,7 @@ static GOptionEntry entries[] =
{
{ "hidden", 'h', 0, G_OPTION_ARG_NONE, &show_hidden, N_("Show hidden files"), NULL },
{ "follow-symlinks", 'l', 0, G_OPTION_ARG_NONE, &follow_symlinks, N_("Follow symbolic links, mounts and shortcuts"), NULL },
+ { NULL }
};
static gint