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/cbad758299ec
branches:  trunk
changeset: 378410:cbad758299ec
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 c70ffb0b60c1 -r cbad758299ec 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 @@ LibGetVariableAndSize (
     // Initialize for GrowBuffer loop
     //
 
+    Status = EFI_SUCCESS;
     Buffer = NULL;
     BufferSize = 100;
 



Home | Main Index | Thread Index | Old Index