aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:43:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:43:22 +0000
commit48d11533b408ccd44b9818ebe54bc1d8cbbd3710 (patch)
treeab5126564ad22150428e89bacd0d7f88d5ba39bf /file.c
parent[w3m-dev 02759] fold textarea (diff)
downloadw3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.tar.gz
w3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.zip
[w3m-dev 02760]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file.c b/file.c
index 89bd2bd..6e87e6b 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.34 2001/12/25 18:15:00 ukai Exp $ */
+/* $Id: file.c,v 1.35 2001/12/27 17:43:23 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -5437,6 +5437,8 @@ getshell(char *cmd)
Buffer *buf;
buf = loadcmdout(cmd, loadBuffer, NULL);
+ if (buf == NULL)
+ return NULL;
buf->filename = cmd;
buf->buffername = Sprintf("%s %s", SHELLBUFFERNAME,
conv_from_system(cmd))->ptr;