lib: Save a few bytes of .text
authorVolker Lendecke <vl@samba.org>
Sun, 12 Nov 2017 13:55:40 +0000 (14:55 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 13 Nov 2017 22:54:47 +0000 (23:54 +0100)
Looks surprising, but this does save bytes if you look at the object with
"size".

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/security/util_sid.c

index 50133a14075f06d4977444c4462f390a6761cf78..e84cfb4826587ad17a62993db9799d4ce78ece75 100644 (file)
@@ -431,6 +431,6 @@ bool add_rid_to_array_unique(TALLOC_CTX *mem_ctx,
 
 bool is_null_sid(const struct dom_sid *sid)
 {
-       static const struct dom_sid null_sid = {0};
+       const struct dom_sid null_sid = {0};
        return dom_sid_equal(sid, &null_sid);
 }