Fix invalid null check
authorKwangYong Choi <ky0.choi@samsung.com>
Wed, 4 Sep 2013 08:19:08 +0000 (17:19 +0900)
committerKwangYong Choi <ky0.choi@samsung.com>
Wed, 4 Sep 2013 08:23:22 +0000 (17:23 +0900)
[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

index 557f803..0b50a36 100755 (executable)
@@ -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)