httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1036606 - /httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c
Date Thu, 18 Nov 2010 20:23:59 GMT
Author: sf
Date: Thu Nov 18 20:23:59 2010
New Revision: 1036606

URL: http://svn.apache.org/viewvc?rev=1036606&view=rev
Log:
Fix 'comparison of unsigned expression < 0 is always false' warning.
(There was no actual problem as id is never set to a negative value.)

Modified:
    httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c

Modified: httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c?rev=1036606&r1=1036605&r2=1036606&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c (original)
+++ httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c Thu Nov 18 20:23:59 2010
@@ -153,7 +153,7 @@ static apr_status_t slotmem_dptr(ap_slot
 
     if (!score)
         return APR_ENOSHMAVAIL;
-    if (id < 0 || id >= score->num)
+    if (id >= score->num)
         return APR_ENOSHMAVAIL;
 
     ptr = score->base + score->size * id;



Mime
View raw message