hal/hald util.c,1.36,1.37

Danny Kukawka dkukawka at kemper.freedesktop.org
Wed May 10 05:28:34 PDT 2006


Update of /cvs/hal/hal/hald
In directory kemper:/tmp/cvs-serv22682/hald

Modified Files:
	util.c 
Log Message:
2006-05-10  Danny Kukawka  <danny.kukawka at web.de>

        * hald/linux2/probing/probe-volume.c: (strdup_valid_utf8):
        removed unneeded code and validate the returned string directly.

        * hald/util.c: (hal_util_strdup_valid_utf8): validate the returned
        string and not the original, which we duplicated for return.



Index: util.c
===================================================================
RCS file: /cvs/hal/hal/hald/util.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- util.c	23 Jan 2006 12:15:50 -0000	1.36
+++ util.c	10 May 2006 12:28:32 -0000	1.37
@@ -1023,7 +1023,7 @@
 
 	newstr = g_strdup (str);
 
-	while (!g_utf8_validate (str, -1, (const char **) &endchar)) {
+	while (!g_utf8_validate (newstr, -1, (const char **) &endchar)) {
 		*endchar = '?';
 	}
 	return newstr;




More information about the hal-commit mailing list