got_hash will always be zero at the point where it's read.
Fixes CID 1261439
Change-Id: I921b66487e22b9badbfd8b071eca735e17ea9006
while (fgets(buf, sizeof(buf), f))
{
char *p, *pp;
- int got_hash = 0;
int forgetit = 0;
int haveinclude = 0;
char *file = NULL, *fname = NULL;
p = buf;
while ((!forgetit) && (*p))
{
- if (!got_hash)
- {
- if (!isspace(*p))
- {
- if (*p == '#')
- got_hash = 1;
- else
- forgetit = 1;
- }
- p++;
- }
+ if (!isspace(*p))
+ {
+ if (*p != '#')
+ forgetit = 1;
+ }
+ p++;
if (!haveinclude)
{
}
else
p++;
- }
-
- got_hash = 0;
+ }
}
if ((file) && (fname))
source_fetch_file(file, fname);