From f75cb30bf97f623417cc7ee4b1bcc5c36cdbeb20 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 17 Oct 2012 15:44:59 -0400 Subject: [PATCH] timedatectl: ensure n_zones is initialized --- src/timedate/timedatectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index e94a847bf..2b5822b54 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -358,7 +358,7 @@ static int zone_compare(const void *_a, const void *_b) { static int list_timezones(DBusConnection *bus, char **args, unsigned n) { _cleanup_fclose_ FILE *f = NULL; _cleanup_strv_free_ char **zones = NULL; - size_t n_zones; + size_t n_zones = 0; char **i; assert(args); -- 2.30.2