From 34de8a00dd69d8ffba98babf141f484da54a472a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 10:33:47 +0200 Subject: s3-libsmb: Make sure that finfo is initialized. Found by clang-analyzer. --- source3/libsmb/clilist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 83b9eb1301..93f67c7e63 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -260,6 +260,8 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, return -1; } + ZERO_STRUCT(finfo); + while (ff_eos == 0) { size_t nlen = 2*(strlen(mask)+1); -- cgit