librpc: Fix warning caused by some empty debug strings
authorTim Prouty <tprouty@samba.org>
Mon, 19 Jan 2009 23:02:25 +0000 (15:02 -0800)
committerTim Prouty <tprouty@samba.org>
Wed, 21 Jan 2009 01:30:28 +0000 (17:30 -0800)
It would probably be better to create a new macro such as DEBUGHDR to
allow empty strings for debug statements, but for the short term this
eliminates the warning with no negative consequences.

librpc/ndr/ndr.c

index 9f7aab3c03d3633b1c1365f9b0c27cc6c4bc95ef..22b9fccbb537bdb1215d72977bda6c46e3373381 100644 (file)
@@ -211,7 +211,7 @@ _PUBLIC_ void ndr_print_debug(ndr_print_fn_t fn, const char *name, void *ptr)
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(""));
+       DEBUG(0,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;
@@ -229,7 +229,7 @@ _PUBLIC_ void ndr_print_union_debug(ndr_print_fn_t fn, const char *name, uint32_
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(""));
+       DEBUG(0,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;
@@ -248,7 +248,7 @@ _PUBLIC_ void ndr_print_function_debug(ndr_print_function_t fn, const char *name
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(""));
+       DEBUG(0,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;