summaryrefslogtreecommitdiff
path: root/libc/stdio/_adjust_pos.c
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2010-10-14 06:35:04 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-10-14 14:59:55 +0200
commit54187ed0f082d145955a932f67259668dd038f65 (patch)
treeccd7f4363ab353528e981502536e5e56bdbc7d8d /libc/stdio/_adjust_pos.c
parentc50d27fa8b1f62ebf9853a641dcf38a90ed33d38 (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