Date: Sun, 8 Jul 2007 05:56:12 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 123087 for review Message-ID: <200707080556.l685uCcW037591@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123087 Change 123087 by andrew@andrew_hermies on 2007/07/08 05:55:39 Correct a for loop to actually loop through the items rather then geting stuck in an infinite loop Affected files ... .. //depot/projects/soc2007/andrew-update/backend/facund-be.c#11 edit Differences ... ==== //depot/projects/soc2007/andrew-update/backend/facund-be.c#11 (text+ko) ==== @@ -301,8 +301,9 @@ facund_object_print(obj); break; case FACUND_ARRAY: - for (pos = 0, cur = facund_object_get_array_item(obj, pos); - cur != NULL; pos++) { + for (pos = 0; + (cur = facund_object_get_array_item(obj, pos)) != NULL; + pos++) { facund_object_print(__DECONST(struct facund_object *, cur)); } break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707080556.l685uCcW037591>