diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-27 17:43:22 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-27 17:43:22 +0000 |
commit | 48d11533b408ccd44b9818ebe54bc1d8cbbd3710 (patch) | |
tree | ab5126564ad22150428e89bacd0d7f88d5ba39bf /file.c | |
parent | [w3m-dev 02759] fold textarea (diff) | |
download | w3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.tar.gz w3m-48d11533b408ccd44b9818ebe54bc1d8cbbd3710.zip |
[w3m-dev 02760]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |