no need to check for NULL before free

This commit is contained in:
Hiltjo Posthuma 2014-12-17 11:54:57 +00:00 committed by lostd
parent d444bf1cb6
commit 81a0c57783

View file

@ -545,10 +545,8 @@ begin:
/* Find cur from history */
cur = dentfind(dents, n, path, oldpath);
if (oldpath != NULL) {
free(oldpath);
oldpath = NULL;
}
free(oldpath);
oldpath = NULL;
for (;;) {
redraw: