1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb: Fix CID 1288201 Array compared against 0

"helper_prog" is now declared as a static array

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2015-03-11 10:58:11 +00:00 committed by Jeremy Allison
parent 8fef2c82c1
commit f724bfb44a

View File

@ -450,10 +450,6 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct debug_h
const char **argv; const char **argv;
int i; int i;
if (helper_prog == NULL) {
return;
}
if (pipe(fd) < 0) { if (pipe(fd) < 0) {
DEBUG(DEBUG_ERR,("Failed to create pipe fd for debug hung script\n")); DEBUG(DEBUG_ERR,("Failed to create pipe fd for debug hung script\n"));
return; return;