This actually saves some .text bytes in the code referencing this constant. The
compiler should be smarter to do the right thing than to copy from a shared
location.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
#include "lib/util/samba_util.h"
#include "lib/util/tsort.h"
-const DATA_BLOB data_blob_null = { NULL, 0 };
-
/**
* @file
* @brief Manipulation of arbitrary data blobs
_PUBLIC_ bool data_blob_pad(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
size_t pad);
-extern const DATA_BLOB data_blob_null;
+#define data_blob_null ((DATA_BLOB){})
/** @} */ /* data_blob */