Quellcode durchsuchen

no need to check for NULL before free

master
Hiltjo Posthuma lostd vor 10 Jahren
Ursprung
Commit
81a0c57783
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. +2
    -4
      noice.c

+ 2
- 4
noice.c Datei anzeigen

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


Laden…
Abbrechen
Speichern