PERFORCE change 123087 for review

Andrew Turner andrew at FreeBSD.org
Sun Jul 8 05:56:13 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123087

Change 123087 by andrew at 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;


More information about the p4-projects mailing list