subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1325880 - in /subversion/trunk/subversion/libsvn_subr: config_file.c mergeinfo.c
Date Fri, 13 Apr 2012 17:59:33 GMT
Author: stefan2
Date: Fri Apr 13 17:59:32 2012
New Revision: 1325880

URL: http://svn.apache.org/viewvc?rev=1325880&view=rev
Log:
Silence compiler warnings concerning variables possibly not being initialized
(none of these warnings seem to be correct).

* subversion/libsvn_subr/config_file.c
  (skip_whitespace): initialize ch
* subversion/libsvn_subr/mergeinfo.c
  (parse_revision_line): initialize pathname

Modified:
    subversion/trunk/subversion/libsvn_subr/config_file.c
    subversion/trunk/subversion/libsvn_subr/mergeinfo.c

Modified: subversion/trunk/subversion/libsvn_subr/config_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/config_file.c?rev=1325880&r1=1325879&r2=1325880&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/config_file.c (original)
+++ subversion/trunk/subversion/libsvn_subr/config_file.c Fri Apr 13 17:59:32 2012
@@ -123,7 +123,7 @@ parser_ungetc(parse_context_t *ctx, int 
 static APR_INLINE svn_error_t *
 skip_whitespace(parse_context_t *ctx, int *c, int *pcount)
 {
-  int ch;
+  int ch = 0;
   int count = 0;
 
   SVN_ERR(parser_getc(ctx, &ch));

Modified: subversion/trunk/subversion/libsvn_subr/mergeinfo.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/mergeinfo.c?rev=1325880&r1=1325879&r2=1325880&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/mergeinfo.c (original)
+++ subversion/trunk/subversion/libsvn_subr/mergeinfo.c Fri Apr 13 17:59:32 2012
@@ -615,7 +615,7 @@ static svn_error_t *
 parse_revision_line(const char **input, const char *end, svn_mergeinfo_t hash,
                     apr_pool_t *scratch_pool)
 {
-  const char *pathname;
+  const char *pathname = "";
   apr_array_header_t *existing_rangelist;
   apr_array_header_t *rangelist = apr_array_make(scratch_pool, 1,
                                                  sizeof(svn_merge_range_t *));



Mime
View raw message