From 1dc78421661e20ef5e4b2157dc499583764d6ed6 Mon Sep 17 00:00:00 2001 From: garbled Date: Wed, 24 Jan 2001 08:29:56 +0000 Subject: [PATCH] Deal with null returns from script entry field types in a semi-sane manner --- usr.sbin/sushi/scanform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/sushi/scanform.c b/usr.sbin/sushi/scanform.c index 9e4bb21c85fd..30a131484aff 100644 --- a/usr.sbin/sushi/scanform.c +++ b/usr.sbin/sushi/scanform.c @@ -1,4 +1,4 @@ -/* $NetBSD: scanform.c,v 1.8 2001/01/24 07:46:23 garbled Exp $ */ +/* $NetBSD: scanform.c,v 1.9 2001/01/24 08:29:56 garbled Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -1004,6 +1004,10 @@ gen_script(FTREE_ENTRY *ftp, char *dir, int max, char **args) } ftp->list[i] = NULL; pclose(file); + if (i == 0) { + ftp->list[0] = ""; + ftp->list[1] = NULL; + } } static char *