Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
nnn
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Free tmp string if dirname fails
master
lostd
10 anni fa
parent
9bc4b92474
commit
0809871aeb
1 ha cambiato i file
con
3 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
noice.c
+ 3
- 1
noice.c
Vedi File
@@ -128,8 +128,10 @@ xdirname(const char *path)
* original string if we lose track of it. */
tmp = xstrdup(path);
p = dirname(tmp);
if (p == NULL)
if (p == NULL) {
free(tmp);
printerr(1, "dirname");
}
/* Make sure this is a malloc(3)-ed string */
p = xstrdup(p);
free(tmp);
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Annulla
Salva