/*
- * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ * Copyright (c) 2009-2011 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
{
lex_t lex;
json_t *result;
- (void)flags; /* unused */
-
string_data_t stream_data = {string, 0};
+ (void)flags; /* unused */
+
if(lex_init(&lex, string_get, string_eof, (void *)&stream_data))
return NULL;