7049366 fbconfig -list can print invalid characters when failing to open a device
authorAlan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 27 May 2011 19:04:46 -0700
changeset 1135 e6377daad4de
parent 1134 e6e56816b06e
child 1136 4c9995acefa5
7049366 fbconfig -list can print invalid characters when failing to open a device
open-src/app/gfx-utils/sun-src/fbconfig/fbconfig.c
--- a/open-src/app/gfx-utils/sun-src/fbconfig/fbconfig.c	Fri May 27 13:13:44 2011 -0700
+++ b/open-src/app/gfx-utils/sun-src/fbconfig/fbconfig.c	Fri May 27 19:04:46 2011 -0700
@@ -1083,6 +1083,7 @@
 		/*
 		 * See if this file is a device and get its identifications
 		 */
+		device_model[0] = '\0';
 		error_code = get_device_identification(
 				device_path,
 				&st_rdev, &vis_ident, &device_model[0]);