Skip to content

Commit

Permalink
Fix uninitialized variable in DateValidator
Browse files Browse the repository at this point in the history
Picked up by coverity.
Refs #9946
  • Loading branch information
martyngigg committed Jul 16, 2014
1 parent 206267d commit 2aeab17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/src/DateValidator.cpp
Expand Up @@ -26,7 +26,7 @@ namespace Kernel
// Zero it out
timeinfo.tm_sec = 0; timeinfo.tm_min = 0; timeinfo.tm_hour = 0;
timeinfo.tm_mday = 0; timeinfo.tm_mon = 0; timeinfo.tm_year = 0;
timeinfo.tm_isdst = -1;
timeinfo.tm_wday = 0; timeinfo.tm_isdst = -1;

std::basic_string<char>::size_type index, off = 0;
int day, month, year;
Expand Down

0 comments on commit 2aeab17

Please sign in to comment.