Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-05 06:21:32 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-05 06:21:32 +0300
commit8948b6585dc2d0d34ddb7a07832b402adcc812a9 (patch)
treed651f62e6a20c27897857f71ae26154f0d55bfd5 /winsup/cygwin/fhandler_process.cc
parent43a299881f1b6e3a7ea900b0c818f9029e13e107 (diff)
* 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.cc2
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;
}