From: Kevin McCarthy Date: Fri, 22 Jun 2018 03:42:55 +0000 (-0700) Subject: Remove uninitialized warning for mutt_get_stat_timespec(). X-Git-Tag: mutt-1-11-rel~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e113ba7b7837ecddd848d9a43c7fbddddc52e5e;p=mutt Remove uninitialized warning for mutt_get_stat_timespec(). The switch covers all the types, but in some cases the compiler still complains. Explicitly set tv_sec = 0 to silence the warning. --- diff --git a/muttlib.c b/muttlib.c index 6835fe4a..2b48f3b8 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1972,6 +1972,7 @@ int mutt_timespec_compare (struct timespec *a, struct timespec *b) void mutt_get_stat_timespec (struct timespec *dest, struct stat *sb, mutt_stat_type type) { + dest->tv_sec = 0; dest->tv_nsec = 0; switch (type)