[PIPEREAD]

Prevent null buffer dereference

svn path=/trunk/; revision=63139
This commit is contained in:
Pierre Schweitzer 2014-05-03 18:52:00 +00:00
parent 82df6707ba
commit 76e0ccc2b9

View file

@ -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