changeset 25623:c107926bfcc5

13401 eeprom: 'lv' may be used uninitialized in this function Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
author Toomas Soome <tsoome@me.com>
date Sun, 27 Dec 2020 10:22:21 +0200
parents 365b3414b73b
children 97ebd7dc417b
files usr/src/cmd/eeprom/i386/benv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/eeprom/i386/benv.c	Mon Apr 13 18:58:09 2020 +0300
+++ b/usr/src/cmd/eeprom/i386/benv.c	Sun Dec 27 10:22:21 2020 +0200
@@ -748,7 +748,7 @@
 		int32_t lv;
 		int16_t v;
 
-		v = strtol(value, &end, 0);
+		lv = strtol(value, &end, 0);
 		if (errno != 0 || *end != '\0')
 			goto done;
 		if (lv < INT16_MIN || lv > INT16_MAX)