summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/System.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/System.c')
-rw-r--r--Source/kwsys/System.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c
index d205c96..900b025 100644
--- a/Source/kwsys/System.c
+++ b/Source/kwsys/System.c
@@ -170,6 +170,12 @@ flag later when we understand applications of this better.
static int kwsysSystem_Shell__ArgumentNeedsQuotes(const char* in, int isUnix,
int flags)
{
+ /* The empty string needs quotes. */
+ if(!*in)
+ {
+ return 1;
+ }
+
/* Scan the string for characters that require quoting. */
{
const char* c;