ensure uni_name.buffer is initialised
authorJeremy Allison <jra@samba.org>
Wed, 9 Jan 2008 06:48:22 +0000 (22:48 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 9 Jan 2008 06:48:22 +0000 (22:48 -0800)
    merge from http://samba.org/~tridge/3_0-ctdb

Jeremy.
(This used to be commit dec77b387cd9024eb33bb0617c7543814e9c9212)

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;