r19819: Windows returns an empty string instead of NULL here
authorVolker Lendecke <vlendec@samba.org>
Tue, 21 Nov 2006 13:28:27 +0000 (13:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:59 +0000 (12:15 -0500)
(This used to be commit c1083216c83f4236edb78484c6333ff1d1646c40)

source3/rpc_server/srv_winreg_nt.c

index f733b14c632b3d6da5841893bd0dfdd6d259f5d1..c45be0845487864bd3a086093940d9216de0ccf0 100644 (file)
@@ -572,7 +572,7 @@ WERROR _winreg_EnumKey(pipes_struct *p, struct policy_handle *handle, uint32_t e
        if ( last_changed_time ) {
                *last_changed_time = 0;
        }
-       keyclass->name = NULL;
+       keyclass->name = "";
        if ( (name->name = talloc_strdup( p->mem_ctx, subkey )) == NULL ) {
                status = WERR_NOMEM;
        }