mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
example/stb-imagedumper: -demo doesn't read stdin
This commit is contained in:
1 parent
65752ede04
commit
3cea27456c
1 file changed
+3
-3
@@ -1151,15 +1151,15 @@ main(int argc, char** argv) {
|
||||
handle(demos[c].filename, demos[c].src_len, demos[c].src_ptr,
|
||||
demos[c].src_len);
|
||||
}
|
||||
|
||||
} else if (g_flags.remaining_argc == 0) {
|
||||
handle("/dev/stdin", 0, NULL, 0);
|
||||
}
|
||||
|
||||
for (int c = 0; c < g_flags.remaining_argc; c++) {
|
||||
const char* filename = g_flags.remaining_argv[c];
|
||||
handle(filename, get_filesize(filename), NULL, 0);
|
||||
}
|
||||
if (g_flags.remaining_argc == 0) {
|
||||
handle("/dev/stdin", 0, NULL, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user