summaryrefslogtreecommitdiff
path: root/scripts/kconfig/util.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-05-25 11:48:05 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2010-05-25 11:48:05 +1000
commit0de52e652c59cdff8310ac67c71ef7d9e1739c24 (patch)
tree06ca4c054f58ecd280daf040a1ab830fe79a9891 /scripts/kconfig/util.c
parent9d8100231aff1f0a10642b00e3875c0a8800a61d (diff)
parentfb994ecc2b1c214951366c2ba5d8b121f0010d1f (diff)
Merge remote branch 'kbuild/for-next'
Diffstat (limited to 'scripts/kconfig/util.c')
-rw-r--r--scripts/kconfig/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c
index 25d1ec4ca28a..78b5c04e736b 100644
--- a/scripts/kconfig/util.c
+++ b/scripts/kconfig/util.c
@@ -78,6 +78,7 @@ 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;
}
@@ -88,6 +89,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;
}