]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix for setbandwidth console command
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 29 Nov 2010 13:25:19 +0000 (14:25 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 1 Dec 2010 09:10:30 +0000 (10:10 +0100)
bacula/src/dird/ua_cmds.c

index 24ac664b80003e5f5922e68d4fe49951220bf39c..51b7727bf623f61ca8934c1cbccba88ac6c7985a 100644 (file)
@@ -707,7 +707,7 @@ static int setbwlimit_cmd(UAContext *ua, const char *cmd)
       limit = ua->pint32_val * 1024; /* kb/s */
    }
 
-   const char *lst[] = { "job", "jobid", "jobname" };
+   const char *lst[] = { "job", "jobid", "jobname", NULL };
    if (find_arg_keyword(ua, lst) > 0) {
       JCR *jcr = select_running_job(ua, "limit");
       if (jcr) {