Browse Source

Prevent a segfault if cp_variablesubst return a nullptr.

Fixes bug-801
pre-master-46
Holger Vogt 7 months ago
parent
commit
b1f4f32b36
  1. 4
      src/frontend/control.c

4
src/frontend/control.c

@ -147,6 +147,10 @@ docommand(wordlist *wlist)
/* Do all the things that used to be done by cshpar when the line /* Do all the things that used to be done by cshpar when the line
* was read... */ * was read... */
wlist = cp_variablesubst(wlist); wlist = cp_variablesubst(wlist);
if (!wlist || !wlist->wl_word)
return;
pwlist(wlist, "After variable substitution"); pwlist(wlist, "After variable substitution");
wlist = cp_bquote(wlist); wlist = cp_bquote(wlist);

Loading…
Cancel
Save