From c0ea4d62c81f7480192b1f61649f82d064dcb716 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 28 Aug 2001 08:41:51 +0000 Subject: handle possible NULL pointer returned from bufferwords() (15717) --- Src/subst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index 0ef084106..8bd1a1ae3 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1833,7 +1833,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) } else list = bufferwords(NULL, val, NULL); - if (!firstnode(list)) + if (!list || !firstnode(list)) val = dupstring(""); else if (!nextnode(firstnode(list))) val = getdata(firstnode(list)); -- cgit 1.4.1