]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util: Fix building with FORTIFY_SOURCE=2
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 03:39:07 +0000 (16:39 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/debug.c

index 0e13fa564e34d277f8063c09513f26b4e72e747c..6872f2dfe4676be2fb83679aaf2c40cbb2157b42 100644 (file)
@@ -1291,7 +1291,7 @@ bool reopen_logs_internal(void)
        struct debug_backend *b = NULL;
        mode_t oldumask;
        size_t i;
-       bool ok;
+       bool ok = true;
 
        if (state.reopening_logs) {
                return true;