kconfig: add xstrdup() helper
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 16 Feb 2018 18:38:31 +0000 (03:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Mar 2018 15:26:47 +0000 (00:26 +0900)
commitcd81fc82b93fa408c30e08f59e5ef8caaa91d1d2
tree5c6024076d70c2a392fb3207d6ba737ef7e5843b
parent6c49f359ca14f973970324afc9b20208fa0bbad5
kconfig: add xstrdup() helper

We already have xmalloc(), xcalloc(), and xrealloc(().  Add xstrdup()
as well to save tedious error handling.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/confdata.c
scripts/kconfig/kxgettext.c
scripts/kconfig/lkc.h
scripts/kconfig/symbol.c
scripts/kconfig/util.c
scripts/kconfig/zconf.y