S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
Immanuel
/
sxiv
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Požadavky na natažení
0
Vydání
0
Wiki
Aktivita
Procházet zdrojové kódy
Fixed empty lines in readline()
master
Bert
před 13 roky
rodič
cfed65d36f
revize
e8ed491ba9
3 změnil soubory
, kde provedl
5 přidání
a
5 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+1
-1
Makefile
+1
-1
main.c
+3
-3
util.c
+ 1
- 1
Makefile
Zobrazit soubor
@@ -1,6 +1,6 @@
all: sxiv
VERSION=git-2011021
4
VERSION=git-2011021
5
CC?=gcc
PREFIX?=/usr/local
+ 1
- 1
main.c
Zobrazit soubor
@@ -91,7 +91,7 @@ int main(int argc, char **argv) {
if (options->from_stdin) {
while ((filename = readline(stdin))) {
if (!check_append(filename))
if (!
*filename || !
check_append(filename))
free((void*) filename);
}
} else {
+ 3
- 3
util.c
Zobrazit soubor
@@ -102,11 +102,11 @@ char* readline(FILE *stream) {
}
} while (!end && !feof(stream) && !ferror(stream));
if (!ferror(stream) && *buf) {
if (ferror(stream)) {
s = NULL;
} else {
s = (char*) s_malloc((strlen(buf) + 1) * sizeof(char));
strcpy(s, buf);
} else {
s = NULL;
}
free(buf);
Zapsat
Náhled
Načítá se…
Zrušit
Uložit