about summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 6ce3651dc..4dacdd337 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -971,14 +971,14 @@ prepnexthistent(void)
 static int
 should_ignore_line(Eprog prog)
 {
-    if (!prog)
-	return 0;
-
     if (isset(HISTIGNORESPACE)) {
 	if (*chline == ' ' || aliasspaceflag)
 	    return 1;
     }
 
+    if (!prog)
+	return 0;
+
     if (isset(HISTNOFUNCTIONS)) {
 	Wordcode pc = prog->prog;
 	wordcode code = *pc;