avoid gcc uninitialized warning

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4663 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-04-28 13:33:17 +00:00
parent 8524adc662
commit 9ed073277d

View file

@ -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;