Commit 7142056a authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Fix initialization of struct tm

parent 38a25f41
......@@ -140,7 +140,7 @@ int buffer_obs_file::open(std::string filename) {
int buffer_obs_file::check(data_obs *data) {
struct tm time;
struct tm time = {0};
size_t smax = 40;
char filename[smax];
......
......@@ -257,6 +257,7 @@ int data_obs::get_time(struct tm* tm) const{
tm->tm_sec = sec;
tm->tm_yday = 0;
tm->tm_wday = 0;
tm->tm_isdst = 0;
return (0);
......@@ -736,7 +737,7 @@ int data_obs::filter_fir_sym_data(std::vector <data_obs*>* data,
<< "Found missing data in filter: "
<< j << " " << missing[j] << " "
<< missing_N[j] << " "
<< data->size()
<< i << " " << data->size()
<< std::endl;
// Calculate filtered data
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment