diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2010-10-14 06:35:04 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-10-14 14:59:55 +0200 |
commit | 54187ed0f082d145955a932f67259668dd038f65 (patch) | |
tree | ccd7f4363ab353528e981502536e5e56bdbc7d8d /libc/stdio/_adjust_pos.c | |
parent | c50d27fa8b1f62ebf9853a641dcf38a90ed33d38 (diff) |
config parser: do not assume that realloc return same pointer
We need to update the parser->line pointer on realloc and do not
initialize the token array til after the potensial realloc in
bb_get_chunk_with_continuation().
While here, also replace a realloc() with malloc() where pointer always
is NULL.
Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdio/_adjust_pos.c')
0 files changed, 0 insertions, 0 deletions