Properly NULL-terminate the array of command-line options.

Submitted by:	Sean McNeil <sean@mcneil.com>
This commit is contained in:
Joe Marcus Clarke 2004-12-18 00:28:12 +00:00
parent 502885d8af
commit 73523d3ae9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124339
4 changed files with 26 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= gnomekeyringmanager
PORTVERSION= 0.0.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-keyring-manager/0.0

View file

@ -0,0 +1,12 @@
--- src/gnome-keyring-manager.c.orig Sun Jun 13 22:16:43 2004
+++ src/gnome-keyring-manager.c Thu Dec 16 22:58:42 2004
@@ -312,7 +312,8 @@
{ "manager", 'm', POPT_ARG_NONE, NULL, OPTION_MANAGER,
N_("Open the keyring manager"), NULL },
{ "keyring", 'k', POPT_ARG_STRING, NULL, OPTION_KEYRING,
- N_("Open the keyring editor for KEYRING"), N_("KEYRING") }
+ N_("Open the keyring editor for KEYRING"), N_("KEYRING") },
+ { NULL, '\0', 0, NULL, 0, NULL, NULL }
};
int

View file

@ -7,7 +7,7 @@
PORTNAME= gnomekeyringmanager
PORTVERSION= 0.0.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-keyring-manager/0.0

View file

@ -0,0 +1,12 @@
--- src/gnome-keyring-manager.c.orig Sun Jun 13 22:16:43 2004
+++ src/gnome-keyring-manager.c Thu Dec 16 22:58:42 2004
@@ -312,7 +312,8 @@
{ "manager", 'm', POPT_ARG_NONE, NULL, OPTION_MANAGER,
N_("Open the keyring manager"), NULL },
{ "keyring", 'k', POPT_ARG_STRING, NULL, OPTION_KEYRING,
- N_("Open the keyring editor for KEYRING"), N_("KEYRING") }
+ N_("Open the keyring editor for KEYRING"), N_("KEYRING") },
+ { NULL, '\0', 0, NULL, 0, NULL, NULL }
};
int