From 8948b6585dc2d0d34ddb7a07832b402adcc812a9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 5 Nov 2002 03:21:32 +0000 Subject: * fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error condition from cmdline retrieval. --- winsup/cygwin/fhandler_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_process.cc') 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 (""); break; } -- cgit v1.2.3