subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bl...@apache.org
Subject svn commit: r1469519 - /subversion/trunk/subversion/libsvn_subr/cache-inprocess.c
Date Thu, 18 Apr 2013 18:33:39 GMT
Author: blair
Date: Thu Apr 18 18:33:39 2013
New Revision: 1469519

URL: http://svn.apache.org/r1469519
Log:
inprocess_cache_get(): silence compiler warning.

subversion/libsvn_subr/cache-inprocess.c: In function 'inprocess_cache_get':
subversion/libsvn_subr/cache-inprocess.c:217: warning: 'size' may be used uninitialized in
this function

* subversion/libsvn_subr/cache-inprocess.c
  (inprocess_cache_get):
    Set size to 0 to avoid a compiler warning.

Modified:
    subversion/trunk/subversion/libsvn_subr/cache-inprocess.c

Modified: subversion/trunk/subversion/libsvn_subr/cache-inprocess.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-inprocess.c?rev=1469519&r1=1469518&r2=1469519&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-inprocess.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-inprocess.c Thu Apr 18 18:33:39 2013
@@ -214,7 +214,7 @@ inprocess_cache_get(void **value_p,
 {
   inprocess_cache_t *cache = cache_void;
   char* buffer = NULL;
-  apr_size_t size;
+  apr_size_t size = 0;
 
   if (key)
     SVN_MUTEX__WITH_LOCK(cache->mutex,



Mime
View raw message