Index: fpdfsdk/src/javascript/JS_Value.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Value.cpp b/fpdfsdk/src/javascript/JS_Value.cpp |
index a5844c1d58eba0407c92920c37a8e12cc990b9b1..ea7bfda57ad712bd81b710fbf18bcd4f6ccf724f 100644 |
--- a/fpdfsdk/src/javascript/JS_Value.cpp |
+++ b/fpdfsdk/src/javascript/JS_Value.cpp |
@@ -611,7 +611,7 @@ int _getDaylightSavingTA(double d) { |
return 0; |
time_t t = (time_t)(d / 1000); |
struct tm* tmp = localtime(&t); |
- if (tmp == NULL) |
+ if (!tmp) |
return 0; |
if (tmp->tm_isdst > 0) |
// One hour. |