From 3f9ed1b9a9035a4ac0fd3f134f32444dd9a5e888 Mon Sep 17 00:00:00 2001 From: KwangYong Choi Date: Wed, 4 Sep 2013 17:19:08 +0900 Subject: [PATCH] Fix invalid null check [Title] Fix invalid null check [Issue#] N_SE-50775 [Problem] Invalid null check. [Cause] N/A [Solution] Fix invalid null check in ewk_week_popup() Change-Id: Ifffcf251995485df63dd83a0d3d784f034c34588 --- Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp b/Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp index 557f803..0b50a36 100755 --- a/Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp +++ b/Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp @@ -830,7 +830,7 @@ void InputPicker::ewk_week_popup(const char* inputValue) strncpy(dateStr.year, token, maxDateStringLength); const char* week = strstr(inputValue, "W"); int weekNum = 1; - if (week + 1) + if (week) weekNum = atoi(week + 1); if (dateStr.year) -- 2.7.4