diff options
author | David Robillard <d@drobilla.net> | 2011-01-21 19:12:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-21 19:12:20 +0000 |
commit | e3b0d874872c77876988385b72f652e367ce669a (patch) | |
tree | 9ba4465bddc931a852aeee9f2eba21957192d2ea /src/serdi.c | |
parent | ff9510dc36fb3d6c5a85e3f4d41220c59b26ee93 (diff) | |
download | serd-e3b0d874872c77876988385b72f652e367ce669a.tar.gz serd-e3b0d874872c77876988385b72f652e367ce669a.tar.bz2 serd-e3b0d874872c77876988385b72f652e367ce669a.zip |
Gracefully stop parsing on error (i.e. report exactly one error for each bad test).
git-svn-id: http://svn.drobilla.net/serd/trunk@23 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r-- | src/serdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c index a688b41b..d793d65a 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -164,7 +164,7 @@ main(int argc, char** argv) return print_usage(argv[0], true); } } - + const uint8_t* in_filename = (const uint8_t*)argv[a]; if (!in_fd && serd_uri_string_has_scheme(in_filename)) { @@ -197,7 +197,7 @@ main(int argc, char** argv) if (!in_fd) { in_fd = fopen((const char*)in_filename, "r"); } - + FILE* out_fd = stdout; if (!in_fd) { |