diff options
author | Tim Felgentreff <timfelgentreff@gmail.com> | 2011-11-16 12:04:46 +0100 |
---|---|---|
committer | Tim Felgentreff <timfelgentreff@gmail.com> | 2011-11-16 12:04:46 +0100 |
commit | e3784346b6524d2350baa2da2845377557d840ec (patch) | |
tree | 8a7dd63e95443bb8cc85ce1f855e8c30e6c3b7b3 | |
parent | 9f1396e8cac032e1e42403b530c5b0bb5e960113 (diff) | |
download | json-e3784346b6524d2350baa2da2845377557d840ec.tar.gz |
MEMZERO effectively sets everything to Qfalse, not Qnil
-rw-r--r-- | ext/json/ext/parser/parser.c | 12 | ||||
-rw-r--r-- | ext/json/ext/parser/parser.rl | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c index b44b396..07d1c17 100644 --- a/ext/json/ext/parser/parser.c +++ b/ext/json/ext/parser/parser.c @@ -2093,12 +2093,12 @@ static JSON_Parser *JSON_allocate() { JSON_Parser *json = ALLOC(JSON_Parser); MEMZERO(json, JSON_Parser, 1); - json->dwrapped_parser = Qnil; - json->Vsource = Qnil; - json->create_id = Qnil; - json->object_class = Qnil; - json->array_class = Qnil; - json->match_string = Qnil; + json->dwrapped_parser = Qfalse; + json->Vsource = Qfalse; + json->create_id = Qfalse; + json->object_class = Qfalse; + json->array_class = Qfalse; + json->match_string = Qfalse; return json; } diff --git a/ext/json/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl index 56e1a11..b07c599 100644 --- a/ext/json/ext/parser/parser.rl +++ b/ext/json/ext/parser/parser.rl @@ -816,12 +816,12 @@ static JSON_Parser *JSON_allocate() { JSON_Parser *json = ALLOC(JSON_Parser); MEMZERO(json, JSON_Parser, 1); - json->dwrapped_parser = Qnil; - json->Vsource = Qnil; - json->create_id = Qnil; - json->object_class = Qnil; - json->array_class = Qnil; - json->match_string = Qnil; + json->dwrapped_parser = Qfalse; + json->Vsource = Qfalse; + json->create_id = Qfalse; + json->object_class = Qfalse; + json->array_class = Qfalse; + json->match_string = Qfalse; return json; } |