X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fload.c;h=5a48dc38134d532e2b6b84ca92ab0ef9c9a5cd9e;hb=dd7dd414f0968a2ca6436c493b4d1d4ed0723bda;hp=f05230ba41e0d1f2867b3d314a8d47ccd99212a9;hpb=5422a862de2354b3419ef628bac5a18c6ef522da;p=jansson.git diff --git a/src/load.c b/src/load.c index f05230b..5a48dc3 100644 --- a/src/load.c +++ b/src/load.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Petri Lehtinen + * Copyright (c) 2009-2011 Petri Lehtinen * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. @@ -805,10 +805,10 @@ json_t *json_loads(const char *string, size_t flags, json_error_t *error) { 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;