Changeset eab8e52 for lib


Ignore:
Timestamp:
2013-01-01T15:31:22Z (7 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
7764fb1
Parents:
e6298e5
Message:

json: fix uninitialized variables

json.c: In function ‘json_parse_ex’:
json.c:260:30: warning: ‘string_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]
json.c:358:16: warning: ‘string’ may be used uninitialized in this function [-Wmaybe-uninitialized]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/json.c

    re6298e5 reab8e52  
    213213      json_uchar uchar;
    214214      unsigned char uc_b1, uc_b2, uc_b3, uc_b4;
    215       json_char * string;
    216       unsigned int string_length;
     215      json_char * string = 0;
     216      unsigned int string_length = 0;
    217217
    218218      top = root = 0;
Note: See TracChangeset for help on using the changeset viewer.