summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/w32cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/w32cat.c b/src/util/w32cat.c
index 4f56ba58e..b9b783ad7 100644
--- a/src/util/w32cat.c
+++ b/src/util/w32cat.c
@@ -84,7 +84,7 @@ main (int argc, char **argv)
for (i = 1; i < argcw || argcw == 1; i++)
{
DWORD r, w;
- int is_dash = wcscmp (argvw[i], L"-") == 0;
+ int is_dash = wcscmp (NULL == argvw[i] ? L"-" : argvw[i], L"-") == 0;
if (argcw == 1 || is_dash)
{
stdi = GetStdHandle (STD_INPUT_HANDLE);