hal: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Mon Mar 12 23:25:28 PDT 2007


 hald/linux/probing/probe-smbios.c |    4 ++++
 1 files changed, 4 insertions(+)

New commits:
diff-tree 5a9d47a3a691cfd7a740f900a647468d59763e63 (from 197d4a00f756ffab651b77cc52901b04df650a86)
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Mar 13 02:24:42 2007 -0400

    avoid "Not Specified" values as these stem from dmidecode itself

diff --git a/hald/linux/probing/probe-smbios.c b/hald/linux/probing/probe-smbios.c
index d0b04ff..d46daba 100644
--- a/hald/linux/probing/probe-smbios.c
+++ b/hald/linux/probing/probe-smbios.c
@@ -71,10 +71,14 @@ setstr (char *buf, char *str, char *prop
 	if (strbegin (buf, str)) {
 		dbus_error_init (&error);
 		value = buf + strlen (str) + 1;
+		if (strcmp (value, "Not Specified") == 0)
+			goto out;
+
 		libhal_device_set_property_string (ctx, udi, prop, value, &error);
 		HAL_DEBUG (("Setting %s='%s'", prop, value));
 		return TRUE;
 	}
+out:
 	return FALSE;
 }
 


More information about the hal-commit mailing list