/*
Bacula® - The Network Backup Solution
- Copyright (C) 2002-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2002-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
ua->gui = true;
if (ua->api) user->signal(BNET_CMD_BEGIN);
ok = (*commands[i].func)(ua, ua->cmd); /* go execute command */
+ if (ua->api) user->signal(ok?BNET_CMD_OK:BNET_CMD_FAILED);
ua->gui = gui;
found = true;
break;
ua->error_msg("%s", user->msg);
ok = false;
}
- if (ua->api) user->signal(ok?BNET_CMD_OK:BNET_CMD_FAILED);
return ok;
}
UAContext *ua = (UAContext *)ctx;
POOL_MEM rows(PM_MESSAGE);
+ /* Check for nonsense */
+ if (num_field == 0 || row == NULL || row[0] == NULL) {
+ return 0; /* nothing returned */
+ }
for (int i=0; num_field--; i++) {
if (i == 0) {
pm_strcpy(rows, NPRT(row[0]));