cnp: Add safety check for NULL pointer from strdup().
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 12 Jun 2015 08:02:05 +0000 (11:02 +0300)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Fri, 12 Jun 2015 08:02:05 +0000 (11:02 +0300)
commit01be46a784115daa6235170ef9d33d4a6b8da0b1
tree6b1ad372325582fd52ecb267484216e38ab8e4c4
parentcd8e6dbce15203d8efbec6767997169de4efe1e6
cnp: Add safety check for NULL pointer from strdup().

Summary:
It could make crash when strdup() is failed.
CID - 329115
@fix

Reviewers: raster, thiepha, woohyun, Hermet

Differential Revision: https://phab.enlightenment.org/D2673
src/lib/elm_cnp.c