hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Mon Nov 12 11:03:40 PST 2007


 hald/linux/probing/probe-smbios.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 534735f7844300fec22cfebcf515ca46c9b91879
Author: Guillem Jover <guillem.jover at nokia.com>
Date:   Mon Nov 12 20:03:34 2007 +0100

    fixed possible inifinite loop when removing trailing spaces
    
    Fixed possible inifinite loop when removing trailing spaces. Athough
    this is not going to happen given current content of the files
    parsed, there's the possibility that the loop could never end.

diff --git a/hald/linux/probing/probe-smbios.c b/hald/linux/probing/probe-smbios.c
index d46daba..2fffd23 100644
--- a/hald/linux/probing/probe-smbios.c
+++ b/hald/linux/probing/probe-smbios.c
@@ -205,7 +205,7 @@ main (int argc, char *argv[])
 	/* read the output of the child */
 	while(fgets (buf, sizeof(buf), f) != NULL)
 	{
-		unsigned int i;
+		int i;
 		unsigned int len;
 		unsigned int tabs = 0;
 


More information about the hal-commit mailing list