diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1428,6 +1428,7 @@ fetchname (char const *at, int strip_leading, bool maybe_quoted, char **pname, struct timespec stamp; stamp.tv_sec = -1; + stamp.tv_nsec = 0; while (ISSPACE ((unsigned char) *at)) at++; @@ -1497,9 +1498,7 @@ fetchname (char const *at, int strip_leading, bool maybe_quoted, char **pname, timestr[u - t] = 0; } - if (*t == '\n') - stamp.tv_sec = -1; - else + if (*t != '\n') { if (! pstamp) { |