From 52a142a6314905422f14f05fccafdce35bea7f08 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 21 Aug 2010 17:00:49 +0200 Subject: Bump package/config to 2.6.36-rc1 The goal is to be able to use savedefconfig to generate minimal defconfig files. Four of our patches are removed since the modifications have been merged upstream. The new nconf configuration utility has appeared. Signed-off-by: Thomas Petazzoni --- package/config/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/config/util.c') diff --git a/package/config/util.c b/package/config/util.c index c3821407d..b15dbab33 100644 --- a/package/config/util.c +++ b/package/config/util.c @@ -199,12 +199,13 @@ int file_write_dep(const char *name) } -/* Allocate initial growable sting */ +/* Allocate initial growable string */ struct gstr str_new(void) { struct gstr gs; gs.s = malloc(sizeof(char) * 64); gs.len = 64; + gs.max_width = 0; strcpy(gs.s, "\0"); return gs; } @@ -215,6 +216,7 @@ struct gstr str_assign(const char *s) struct gstr gs; gs.s = strdup(s); gs.len = strlen(s) + 1; + gs.max_width = 0; return gs; } -- cgit v1.2.3