libc/stdio: Handle NULL case input in tempnam() API
libc/stdio: Handle NULL case input in tempnam() API

This patch modifies tempnam() API to check for NULL directory case which was not handled.

Signed-off-by: Vidisha Thapa <3d8bcdb46ae40344d12a5a0255e34cf386c7657a@samsung.com>

HONGCHAEHEE/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,JeongJunSik/TizenRT,shivgarg/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,jsdosa/TizenRT,jeongarmy/TizenRT,lokeshbv/TizenRT,lokeshbv/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,JeonginKim/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,heejin-kim/TizenRT,shivgarg/TizenRT,btheosam/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,junmin-kim/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,shivgarg/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,Samsung/TizenRT,btheosam/TizenRT,Samsung/TizenRT,JeongJunSik/TizenRT,jeongarmy/TizenRT,HONGCHAEHEE/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,shivgarg/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,btheosam/TizenRT,JeonginKim/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,davidfather/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,an4967/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,JeongJunSik/TizenRT,heejin-kim/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,HONGCHAEHEE/TizenRT,jsdosa/TizenRT,lokeshbv/TizenRT,heejin-kim/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,btheosam/TizenRT,junmin-kim/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,JeongJunSik/TizenRT,pillip8282/TizenRT,lokeshbv/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,lokeshbv/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,HONGCHAEHEE/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,shivgarg/TizenRT,Samsung/TizenRT,shivgarg/TizenRT,heejin-kim/TizenRT,Samsung/TizenRT,sunghan-chang/TizenRT,lokeshbv/TizenRT,jsdosa/TizenRT,btheosam/TizenRT,jeongchanKim/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,jeongchanKim/TizenRT,JeonginKim/TizenRT,JeongJunSik/TizenRT,an4967/TizenRT,JeongJunSik/TizenRT,heejin-kim/TizenRT,HONGCHAEHEE/TizenRT,sunghan-chang/TizenRT,heejin-kim/TizenRT