Parcourir la source

no need to check for NULL before free

master
Hiltjo Posthuma lostd il y a 10 ans
Parent
révision
81a0c57783
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. +2
    -4
      noice.c

+ 2
- 4
noice.c Voir le fichier

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


Chargement…
Annuler
Enregistrer