mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
8fef2c82c1
commit
f724bfb44a
@ -450,10 +450,6 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct debug_h
|
||||
const char **argv;
|
||||
int i;
|
||||
|
||||
if (helper_prog == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (pipe(fd) < 0) {
|
||||
DEBUG(DEBUG_ERR,("Failed to create pipe fd for debug hung script\n"));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user