aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-25 18:41:32 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commitfbb433a6817a0fcab10667b2bd240610ff179973 (patch)
tree32c0db56ea2d237e01625ba807ffa2917dbc6001 /src
parent0de53f22863af2bb3c8db3d1cf5e015f0a9b9f87 (diff)
Choke on invalid stream options properly
Diffstat (limited to 'src')
-rw-r--r--src/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 4707f327..fd4f5c47 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -102,7 +102,7 @@ int parse_stream_flags(const char *a)
} else {
ERROR("Unrecognised stream flag '%s'\n", flags[i]);
- return 0;
+ return -1;
}
free(flags[i]);