Skip to content

Commit

Permalink
- finally squashed bug in gdsio::now
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgri committed Oct 23, 2016
1 parent 57b3a64 commit bef1856
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Basic/gdsio/gdsio.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ now(date_t dv)

/* fill date vector */
if (pts == NULL) {
memset(&dv, '\0', sizeof dv);
dv[0] = 0;
dv[1] = 0;
dv[2] = 0;
dv[3] = 0;
dv[4] = 0;
dv[5] = 0;
}
else {
dv[0] = pts->tm_year + 1900;
Expand Down

0 comments on commit bef1856

Please sign in to comment.