diff options
Diffstat (limited to 'scripts/kconfig/util.c')
| -rw-r--r-- | scripts/kconfig/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index b6b2a46af14c..78b5c04e736b 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
| @@ -72,12 +72,13 @@ int file_write_dep(const char *name) | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | /* Allocate initial growable sting */ | 75 | /* Allocate initial growable string */ |
| 76 | struct gstr str_new(void) | 76 | struct gstr str_new(void) |
| 77 | { | 77 | { |
| 78 | struct gstr gs; | 78 | struct gstr gs; |
| 79 | gs.s = malloc(sizeof(char) * 64); | 79 | gs.s = malloc(sizeof(char) * 64); |
| 80 | gs.len = 64; | 80 | gs.len = 64; |
| 81 | gs.max_width = 0; | ||
| 81 | strcpy(gs.s, "\0"); | 82 | strcpy(gs.s, "\0"); |
| 82 | return gs; | 83 | return gs; |
| 83 | } | 84 | } |
| @@ -88,6 +89,7 @@ struct gstr str_assign(const char *s) | |||
| 88 | struct gstr gs; | 89 | struct gstr gs; |
| 89 | gs.s = strdup(s); | 90 | gs.s = strdup(s); |
| 90 | gs.len = strlen(s) + 1; | 91 | gs.len = strlen(s) + 1; |
| 92 | gs.max_width = 0; | ||
| 91 | return gs; | 93 | return gs; |
| 92 | } | 94 | } |
| 93 | 95 | ||
