[gnutls-devel] GnuTLS | lib: mark infinite loops explicitly (!1043)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Jul 9 10:32:47 CEST 2019




Tim Rühsen started a new discussion on lib/x509/name_constraints.c: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189740598

>  		}
>  
>  		tmp.data = NULL;
> -	} while (ret >= 0);

Is there a reason not to use `for (;;) {` ? Assuming you read code from top to bottom, the reader knows right from the beginning that it is an endless loop.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189740598
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190709/525a3f0d/attachment.html>


More information about the Gnutls-devel mailing list