diff options
author | David Tardon <dtardon@redhat.com> | 2012-05-06 06:47:53 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-06 19:51:38 +0200 |
commit | 7169b1b308131e4c9c75efd49544989e1d82a573 (patch) | |
tree | f846c0ec264606fd14ad6e23bd12fec65712a9f0 /extensions | |
parent | 919697f91298ced168c1d6baac7e0d6db3100db6 (diff) |
WaE: ordered comparison of pointer with integer zero
Change-Id: I832ecd73e5456d90c3247851ed4803f2edb51ae5
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/nsplugin/source/so_main.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |