Fix to check memory allocation failure 67/224367/1 accepted/tizen/unified/20200210.131720 submit/tizen/20200210.075209
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 10 Feb 2020 06:28:36 +0000 (15:28 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 10 Feb 2020 06:28:38 +0000 (15:28 +0900)
commit737d065c7fa0dc71223f6eb83dcb938b640dbea4
treecede835f450c2e895965f73750274d43173814aa
parent47fba2f480c071a3b308910dbd47e6aa2b49cb49
Fix to check memory allocation failure

The strdup() can be failed and return NULL. Not to access wrong
memory, explictly check memory allocation failure.

Change-Id: I2917cf0cebd6488004b653c29137c0acbb56074e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/main.c