avoid some compiler warnings 'referencing a NULL pointer'

This commit is contained in:
Holger Vogt 2020-08-09 10:24:34 +02:00
parent 458411b2e1
commit 26a4a32b8b
1 changed files with 4 additions and 1 deletions

View File

@ -1234,7 +1234,7 @@ inp_dodeck(
ct->ci_deck = deck;
ct->ci_mcdeck = mc_deck;
ct->ci_options = options;
if (deck->actualLine)
if (deck && deck->actualLine)
ct->ci_origdeck = deck->actualLine;
else
ct->ci_origdeck = ct->ci_deck;
@ -1576,6 +1576,9 @@ com_source(wordlist *wl)
wordlist *owl = wl;
size_t n;
if (wl == NULL)
return;
inter = cp_interactive;
cp_interactive = FALSE;