From 76e0ccc2b9137d095e3eacfb4d92d223ddd8397a Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 3 May 2014 18:52:00 +0000 Subject: [PATCH] [PIPEREAD] Prevent null buffer dereference svn path=/trunk/; revision=63139 --- reactos/tools/pipetools/piperead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/tools/pipetools/piperead.cpp b/reactos/tools/pipetools/piperead.cpp index 3ab4c4ccb73..6359335dc0a 100644 --- a/reactos/tools/pipetools/piperead.cpp +++ b/reactos/tools/pipetools/piperead.cpp @@ -196,8 +196,8 @@ int main(int argc, char** argv) case 3: clientMode = *++argv; if (strcmp(clientMode,"-c") != 0) { - clientMode = NULL; fprintf(stderr,"Invalid option: %s\n", clientMode); + clientMode = NULL; res = -6; } //fall through