Skip to content

Commit

Permalink
apropos.c: Fixed some more loose ends in remove_stopwords.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-upadhyay committed Aug 12, 2011
1 parent 8ae5b74 commit d39fa84
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apropos.c
Expand Up @@ -146,7 +146,7 @@ main(int argc, char *argv[])

if (search(query, &aflags) < 0)
errx(EXIT_FAILURE, "Sorry, no relevant results could be obtained");

free(query);
return 0;
}

Expand Down Expand Up @@ -413,10 +413,9 @@ remove_stopwords(char **query)

hdestroy();
if (buf != NULL)
*query = estrdup(buf);
*query = buf;
else
*query = estrdup("");
free(buf);
*query = (char *)"";
}

/*
Expand Down

0 comments on commit d39fa84

Please sign in to comment.