]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compiler warning
authorKern Sibbald <kern@sibbald.com>
Sun, 27 Sep 2009 08:54:23 +0000 (10:54 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 27 Sep 2009 08:54:23 +0000 (10:54 +0200)
bacula/src/filed/restore.c

index 680146700f857b6c729b227d112ab62ea0964476..1a65e43a545b7d013c801befbb5b442263a60ef7 100644 (file)
@@ -1084,7 +1084,7 @@ bool decompress_data(JCR *jcr, char **data, uint32_t *length)
       /*
        * The buffer size is too small, try with a bigger one
        */
-      compress_len = jcr->compress_buf_size = jcr->compress_buf_size + jcr->compress_buf_size >> 1;
+      compress_len = jcr->compress_buf_size = jcr->compress_buf_size + (jcr->compress_buf_size >> 1);
       Dmsg2(200, "Comp_len=%d msglen=%d\n", compress_len, *length);
       jcr->compress_buf = check_pool_memory_size(jcr->compress_buf,
                                                  compress_len);