diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:21:32 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:21:32 +0000 |
commit | 8948b6585dc2d0d34ddb7a07832b402adcc812a9 (patch) | |
tree | d651f62e6a20c27897857f71ae26154f0d55bfd5 /winsup/cygwin/fhandler_process.cc | |
parent | 43a299881f1b6e3a7ea900b0c818f9029e13e107 (diff) | |
download | cygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.tar.gz cygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.tar.bz2 cygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.zip |
* fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error
condition from cmdline retrieval.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index a9e8d2f0c..03000a21d 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -301,7 +301,7 @@ fhandler_process::fill_filebuf () if (filebuf) free (filebuf); filebuf = p->cmdline (filesize); - if (!*filebuf) + if (!filebuf || !*filebuf) filebuf = strdup ("<defunct>"); break; } |