瀏覽代碼

no need to check for NULL before free

master
Hiltjo Posthuma lostd 10 年之前
父節點
當前提交
81a0c57783
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      noice.c

+ 2
- 4
noice.c 查看文件

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


Loading…
取消
儲存