From 656140bf4b0c62e1bfdb4ea59db15808ae25edec Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 22 Mar 2005 22:04:01 +0000 Subject: r5975: Re-arrange code and comments to make more sense. Jeremy. (This used to be commit 08616ad80d96d1b7b558eec036bafb4bf3663942) --- source3/libsmb/clilist.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'source3/libsmb/clilist.c') diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 33bf32bb94..eea4391e55 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -269,18 +269,6 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, /* point to the data bytes */ p = rdata; - /* we might need the lastname for continuations */ - - /* and add them to the dirlist pool */ - tdl = SMB_REALLOC(dirlist,dirlist_len + data_len); - - if (!tdl) { - DEBUG(0,("cli_list_new: Failed to expand dirlist\n")); - break; - } else { - dirlist = tdl; - } - /* we might need the lastname for continuations */ for (p2=p,i=0;i