From 9ed073277dd4999a88db20ca89fdc1cf0768ad69 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 28 Apr 2006 13:33:17 +0000 Subject: [PATCH] avoid gcc uninitialized warning git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4663 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/strlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/strlist.h b/Source/strlist.h index 2bc39503..ef1511e7 100644 --- a/Source/strlist.h +++ b/Source/strlist.h @@ -131,7 +131,7 @@ class SortedStringListND // no delete - can be placed in GrowBuf // returns -1 when name already exists and pos if added int add(const char *name, int case_sensitive=0, int alwaysreturnpos=0) { - int where; + int where=0; T newstruct={0,}; int pos=find(name,-1,case_sensitive,1,&where); if (pos==-1) return alwaysreturnpos ? where : -1;