Fix potentially undefined behavior 09/178009/3 accepted/tizen/unified/20180518.120452 submit/tizen/20180510.103449
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 28 Sep 2017 10:05:07 +0000 (19:05 +0900)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 7 May 2018 11:24:16 +0000 (13:24 +0200)
commit194eeea2ada4a02a00e5fc6517ac6f9fd1e327a8
treeacade2e28393d260644363966798cfe894415236
parent1d0d800b2129a1b2521ffc603fc247daffb18850
Fix potentially undefined behavior

The documentation does not describe the behavior of the access()
function for a NULL path argument, which can be returned by mkdtemp()

Change-Id: I9c5c08eb424f5e9bdab248682b00e9cb895c7afa
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
[ Cherry-picked from tizen_4.0 branch, extended commit message ]
Signed-off-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
src/crash-manager/crash-manager.c
src/dump_systemstate/dump_systemstate.c