ensure uni_name.buffer is initialised
authorVolker Lendecke <vl@samba.org>
Wed, 9 Jan 2008 06:59:12 +0000 (07:59 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 9 Jan 2008 06:59:12 +0000 (07:59 +0100)
merge from http://samba.org/~tridge/3_0-ctdb
(This used to be commit 2938e74dea1695c813d6220a839b248dbc3b1d8f)

source3/smbd/notify.c

index 72872108029b5e1a4acac15a88ac1ad524a202d5..5c26cac21924b45b220960d4a65b02a9bc94674b 100644 (file)
@@ -65,6 +65,8 @@ static bool notify_marshall_changes(int num_changes,
        int i;
        UNISTR uni_name;
 
+       uni_name.buffer = NULL;
+
        for (i=0; i<num_changes; i++) {
                struct notify_change *c;
                size_t namelen;