Explorar el Código

The dirp should be initialized here

master
lostd hace 11 años
padre
commit
11bebdf23e
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. +4
    -5
      noice.c

+ 4
- 5
noice.c Ver fichero

@@ -555,11 +555,10 @@ out:
free(dents[i].name);
free(dents);

if (dirp != NULL) {
r = closedir(dirp);
if (r == -1)
printerr(1, "closedir");
}
/* Should never be null */
r = closedir(dirp);
if (r == -1)
printerr(1, "closedir");

goto begin;
}


Cargando…
Cancelar
Guardar