Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/gnu-efi/dist/lib avoid uninitialised variab...



details:   https://anonhg.NetBSD.org/src/rev/1d3b784c3df7
branches:  trunk
changeset: 961582:1d3b784c3df7
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Apr 12 09:24:24 2021 +0000

description:
avoid uninitialised variable access.  make this case like the other 2 around it.

diffstat:

 sys/external/bsd/gnu-efi/dist/lib/misc.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f881c435eb54 -r 1d3b784c3df7 sys/external/bsd/gnu-efi/dist/lib/misc.c
--- a/sys/external/bsd/gnu-efi/dist/lib/misc.c  Mon Apr 12 09:23:32 2021 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/misc.c  Mon Apr 12 09:24:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $    */
+/*     $NetBSD: misc.c,v 1.2 2021/04/12 09:24:24 mrg Exp $     */
 
 /*++
 
@@ -256,6 +256,7 @@
     // Initialize for GrowBuffer loop
     //
 
+    Status = EFI_SUCCESS;
     Buffer = NULL;
     BufferSize = 100;
 



Home | Main Index | Thread Index | Old Index