aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-03 01:47:50 +0000
committerDavid Robillard <d@drobilla.net>2012-03-03 01:47:50 +0000
commit5d73ff3a0b529954e5192f892c21a4ad068905c9 (patch)
treeb2c308ee865bf609fbacb3f8c18a8b9a2be4bd04 /src/serdi.c
parentfd3eaa93bde291707405968491ba9a9ab32e41ca (diff)
downloadserd-5d73ff3a0b529954e5192f892c21a4ad068905c9.tar.gz
serd-5d73ff3a0b529954e5192f892c21a4ad068905c9.tar.bz2
serd-5d73ff3a0b529954e5192f892c21a4ad068905c9.zip
Fix reading of empty files (e.g. /dev/null) test case.
git-svn-id: http://svn.drobilla.net/serd/trunk@328 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 63822e94..661b60e0 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -215,5 +215,5 @@ main(int argc, char** argv)
serd_env_free(env);
serd_node_free(&base_uri_node);
- return (status == SERD_SUCCESS) ? 0 : 1;
+ return (status > SERD_FAILURE) ? 1 : 0;
}