]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compiler warning generated by prior commit 1aad2088d21a3
authorKern Sibbald <kern@sibbald.com>
Sat, 14 Jul 2018 10:47:57 +0000 (12:47 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 14 Jul 2018 10:47:57 +0000 (12:47 +0200)
bacula/src/dird/restore.c

index bd789d281ffcc843bf33190a0118477cd16581cf..1ba17ea8d4e7da8c33208f20db165b5a17542eba 100644 (file)
@@ -704,6 +704,7 @@ void restore_cleanup(JCR *jcr, int TermCode)
 
    get_restore_params(jcr, where, &creplace, NULL);
 
+   replace = ReplaceOptions[0].name;     /* default */
    for (int i=0; ReplaceOptions[i].name; i++) {
       if (ReplaceOptions[i].token == (int)creplace) {
          replace = ReplaceOptions[i].name;