Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2000 17:57:44 +0200 (CEST)
From:      Falko Dressler <fd@bsd.rrze.uni-erlangen.de>
To:        freebsd-current@freebsd.org
Subject:   bug in ccard.c (pccardd code)
Message-ID:  <Pine.BSF.4.10.10009251754070.96250-100000@bsd.rrze.uni-erlangen.de>

next in thread | raw e-mail | index | archive | help

I discovered a little bug in ccard.c which is part of the pccardd:

*** cardd.c.orig	Mon Sep 25 17:52:03 2000
--- cardd.c	Mon Sep 25 17:52:12 2000
***************
*** 546,552 ****
  		sp->config->index = cisconf->id;
  		break;
  	default:		/* normal, use index value */
! 		for (cisconf = cis->conf; cisconf; cisconf = cisconf->next)
  			if (cisconf->id == sp->config->index)
  				break;
  	}
--- 546,552 ----
  		sp->config->index = cisconf->id;
  		break;
  	default:		/* normal, use index value */
! 		for (cisconf = cis->conf; cisconf->next; cisconf = cisconf->next)
  			if (cisconf->id == sp->config->index)
  				break;
  	}


Someone forgot to place the right pointer into the for-loop.

Could you correct this for the next version!

Best regards,
Falko.


--
Falko Dressler
Am Tiefen Weg 13, 91077 Dormitz, Germany
EMail: fd@fd42.de / Phone: +49 700 DRESSLER
Phone: +49 9134 993311 / Fax: +49 9134 997267
WWW: http://bsd.rrze.uni-erlangen.de/~fd/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10009251754070.96250-100000>