Skip to content

Commit

Permalink
Remove superfluous null ptr check after dereferencing (CID 1376279).
Browse files Browse the repository at this point in the history
  • Loading branch information
thommey committed Nov 19, 2016
1 parent 63740da commit 21d85b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/language.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ static int del_lang(char *lang)
lpo->next = lp->next;
else
langpriority = lp->next;
if (lp->lang)
nfree(lp->lang);
nfree(lp->lang);
nfree(lp);
debug1("LANG: Language unloaded: %s", lang);
return 1;
Expand Down

0 comments on commit 21d85b2

Please sign in to comment.