summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index db6b3d5b..5dd0d05f 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -2486,7 +2486,7 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 		}
 		j++;
 	}
-	if (*word_eol[j])
+	if (word_eol[j] != NULL && *word_eol[j])
 	{
 		lastlog (sess, word_eol[j], flags);
 		return TRUE;