r5657: Fix uninitialized variable warning
authorVolker Lendecke <vlendec@samba.org>
Sat, 5 Mar 2005 08:12:40 +0000 (08:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:54 +0000 (10:55 -0500)
(This used to be commit f74737ce574aa4b47367fccb1b95769778187515)

source3/libsmb/clidfs.c

index 867e8e9ba0a8ccaf604289800da5ed599501fe73..e4308fdb5a4a5a55a2e060c369e646cc102299b5 100644 (file)
@@ -484,7 +484,7 @@ BOOL cli_dfs_get_referral( struct cli_state *cli, const char *path,
        char *p;
        size_t pathlen = 2*(strlen(path)+1);
        uint16 num_referrals;
-       CLIENT_DFS_REFERRAL *referrals;
+       CLIENT_DFS_REFERRAL *referrals = NULL;
        
        memset(param, 0, sizeof(param));
        SSVAL(param, 0, 0x03);  /* max referral level */