]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: -Werror was turned on (probably just for development),
authorderaadt@openbsd.org <deraadt@openbsd.org>
Fri, 17 May 2024 06:11:17 +0000 (06:11 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 22 May 2024 04:20:46 +0000 (14:20 +1000)
and this is a simple way to satisfy older gcc.

OpenBSD-Commit-ID: 7f698df54384b437ce33ab7405f0b86c87019e86

misc.c

diff --git a/misc.c b/misc.c
index 133ac0ece39e5fe4b86476cf10a02f78a6bbd449..0a00d09629b0ccd10936891bcb243e667d852bc1 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.194 2024/05/17 00:30:23 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.195 2024/05/17 06:11:17 deraadt Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005-2020 Damien Miller.  All rights reserved.
@@ -596,7 +596,7 @@ int
 convtime(const char *s)
 {
        int secs, total = 0, multiplier;
-       char *p, *os, *np, c;
+       char *p, *os, *np, c = 0;
        const char *errstr;
 
        if (s == NULL || *s == '\0')