[ircd-ratbox] ircd-ratbox-2.2.9 bug report

David Binderman dcb314 at hotmail.com
Wed Oct 21 09:32:36 UTC 2015


Hello there,

io.c:466:7: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]

SOurce code is

         if(!(ret2 = deflate(&out_state.zip_state.z_stream,
                        Z_PARTIAL_FLUSH)) == Z_OK)

Maybe better code

         if ((ret2 = deflate(&out_state.zip_state.z_stream,
                        Z_PARTIAL_FLUSH)) != Z_OK)

Regards

David Binderman


 		 	   		  


More information about the ircd-ratbox mailing list