From 7169b1b308131e4c9c75efd49544989e1d82a573 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 6 May 2012 06:47:53 +0200 Subject: WaE: ordered comparison of pointer with integer zero Change-Id: I832ecd73e5456d90c3247851ed4803f2edb51ae5 --- extensions/source/nsplugin/source/so_main.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/source') diff --git a/extensions/source/nsplugin/source/so_main.cxx b/extensions/source/nsplugin/source/so_main.cxx index 941bf8f15b0a..4a624fa6417a 100644 --- a/extensions/source/nsplugin/source/so_main.cxx +++ b/extensions/source/nsplugin/source/so_main.cxx @@ -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 ) -- cgit