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: 2019-10-25~666^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df9f8eaa845ba36b4bb5c8bbc63896f8b82392a1;p=neomutt 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 466cde466..595f832d7 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1464,6 +1464,7 @@ int mutt_timespec_compare(struct timespec *a, struct timespec *b) */ void mutt_get_stat_timespec(struct timespec *dest, struct stat *sb, enum MuttStatType type) { + dest->tv_sec = 0; dest->tv_nsec = 0; switch (type)