httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r106507 - /httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h
Date Thu, 25 Nov 2004 00:07:07 GMT
Author: joes
Date: Wed Nov 24 16:07:06 2004
New Revision: 106507

URL: http://svn.apache.org/viewcvs?view=rev&rev=106507
Log:

My gcc is now complaining (incorrectly, it seems) about a few 
uninitialized variables.  This patch silences those warnings.

Modified:
   httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h

Modified: httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h
Url: http://svn.apache.org/viewcvs/httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h?view=diff&rev=106507&p1=httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h&r1=106506&p2=httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h&r2=106507
==============================================================================
--- httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h	(original)
+++ httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_tables.h	Wed Nov 24 16:07:06 2004
@@ -127,7 +127,7 @@
     const char *key, *val;                                              \
     SV *sv, *obj;                                                       \
     STRLEN klen, vlen;                                                  \
-    apreq_##attr##_t *RETVAL;                                           \
+    apreq_##attr##_t *RETVAL = NULL;                                    \
                                                                         \
     switch (items) {                                                    \
     case 2:                                                             \
@@ -442,7 +442,7 @@
     struct apreq_xs_do_arg d = { NULL, NULL, NULL, NULL, 0, aTHX };     \
     apr_table_t *t;                                                     \
     void *env;                                                          \
-    int i, rv;                                                          \
+    int i, rv = 1;                                                      \
     SV *sv, *obj;                                                       \
     MAGIC *mg;                                                          \
                                                                         \

Mime
View raw message