From 0c6b7c5e06a88ae241bf366406101e367ff8daaa Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 4 Aug 2013 11:54:23 +0900 Subject: Fix potentially segfault of execdict() --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index b421943..36630f3 100644 --- a/main.c +++ b/main.c @@ -5604,7 +5604,7 @@ execdict(char *word) disp_message("Execution failed", TRUE); return; } - else { + else if (buf != NO_BUFFER) { buf->filename = w; buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr; if (buf->type == NULL) -- cgit v1.2.3