summaryrefslogtreecommitdiff
path: root/test/inputstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/inputstream.c')
-rw-r--r--test/inputstream.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/inputstream.c b/test/inputstream.c
index 5e4f134..33b163b 100644
--- a/test/inputstream.c
+++ b/test/inputstream.c
@@ -40,9 +40,8 @@ int main(int argc, char **argv)
assert(parserutils_initialise(argv[1], myrealloc, NULL) ==
PARSERUTILS_OK);
- stream = parserutils_inputstream_create("UTF-8", 1, NULL,
- myrealloc, NULL);
- assert(stream != NULL);
+ assert(parserutils_inputstream_create("UTF-8", 1, NULL,
+ myrealloc, NULL, &stream) == PARSERUTILS_OK);
fp = fopen(argv[2], "rb");
if (fp == NULL) {