summaryrefslogtreecommitdiff
path: root/app/xmessage/makeform.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/xmessage/makeform.c')
-rw-r--r--app/xmessage/makeform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/xmessage/makeform.c b/app/xmessage/makeform.c
index ad16098d5..089977142 100644
--- a/app/xmessage/makeform.c
+++ b/app/xmessage/makeform.c
@@ -56,7 +56,7 @@ unquote_pairs (ButtonRecord *br, int n)
{
int i;
- for (i = 0; i < n; i++) {
+ for (i = 0; i < n; i++, br++) {
char *dst, *src;
int quoted = 0;
@@ -91,6 +91,7 @@ parse_name_and_exit_code_list (char *buttonlist, ButtonRecord **brptr)
int len;
char *copy;
+ *brptr = NULL;
if (!buttonlist) return 0;
/*