]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/scan.c
Ignore UTF-8 marker at the start of .conf files.
[bacula/bacula] / bacula / src / lib / scan.c
index 53c40242104bf875df494576396a809dad3f7ab2..5e9403fd54a5f59889bd99b52d8c319f8e6cb2d8 100644 (file)
@@ -339,7 +339,9 @@ switch_top:
             }
             vp = (void *)va_arg(ap, void *);
 //          Dmsg2(000, "val=%lld at 0x%lx\n", value, (long unsigned)vp);
-            if (l < 2) {
+            if (l == 0) {
+               *((int *)vp) = (int)value;
+            } else if (l == 1) {
                *((uint32_t *)vp) = (uint32_t)value;
 //             Dmsg0(000, "Store 32 bit int\n");
             } else {