aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-08-04 02:54:23 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-08-04 02:54:23 +0000
commit0c6b7c5e06a88ae241bf366406101e367ff8daaa (patch)
treef8f7b7ea1805fe90028a931ebece9599e234c236 /main.c
parentMerge from upstream on 2012-05-22 (diff)
downloadw3m-0c6b7c5e06a88ae241bf366406101e367ff8daaa.tar.gz
w3m-0c6b7c5e06a88ae241bf366406101e367ff8daaa.zip
Fix potentially segfault of execdict()
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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)