diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-08 17:19:07 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-10 03:26:04 +0100 |
commit | d717f24d8c68081caae2374cf5ea6c4e62c490fc (patch) | |
tree | 325008cf6d2fea2dfa15e4d49ae4d4d79fb1ff2b /scripts/kconfig/zconf.l | |
parent | kconfig: send error messages to stderr (diff) | |
download | linux-d717f24d8c68081caae2374cf5ea6c4e62c490fc.tar.xz linux-d717f24d8c68081caae2374cf5ea6c4e62c490fc.zip |
kconfig: add xrealloc() helper
We already have xmalloc(), xcalloc(). Add xrealloc() as well
to save tedious error handling.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 0ba4900050c1..02de6fe302a9 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -52,7 +52,7 @@ static void append_string(const char *str, int size) if (new_size > text_asize) { new_size += START_STRSIZE - 1; new_size &= -START_STRSIZE; - text = realloc(text, new_size); + text = xrealloc(text, new_size); text_asize = new_size; } memcpy(text + text_size, str, size); |