[gvfs] gvfs-tree: End GOptionEntry array with NULL



commit 1d944bcd1fcd1e4a8afb26758c98fa3b72786798
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Tue Apr 1 23:23:16 2014 +0100

    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

 programs/gvfs-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/programs/gvfs-tree.c b/programs/gvfs-tree.c
index 8e18f77..412f722 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]