Kaydet (Commit) 7169b1b3 authored tarafından David Tardon's avatar David Tardon

WaE: ordered comparison of pointer with integer zero

Change-Id: I832ecd73e5456d90c3247851ed4803f2edb51ae5
üst 919697f9
......@@ -456,12 +456,12 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
fd_pipe[1] = (NSP_PIPE_FD) iPipe[1] ;
NSP_Close_Pipe(fd_pipe[1]);
la_read_fd = fd_pipe[0];
if(la_read_fd < 0)
if(iPipe[0] < 0)
{
debug_fprintf(NSP_LOG_APPEND, "print by nsplugin, command error: bad read file id:%s \n", la_read_fd);
debug_fprintf(NSP_LOG_APPEND, "print by nsplugin, command error: bad read file id:%s \n", iPipe[0]);
return 0;
}
la_read_fd = fd_pipe[0];
// the program path is provided only on unix, on windows the registry entry is used
if ( argc > 4 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment