Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2484 - branches/fsvs-1.2.x/fsvs/src/status.c

fsvs
Discussion topic

Back to topic list

svn commit: r2484 - branches/fsvs-1.2.x/fsvs/src/status.c

Author pmarek
Full name P.Marek
Date 2015-12-29 02:43:58 PST
Message Author: pmarek
Date: 2015-12-29 02:43:57-0800
New Revision: 2484

Modified:
   branches/fsvs-1.2.x/​fsvs/src/status.c

Log:
Fix compiler warning; string can't be NULL.

Modified: branches/fsvs-1.2.x/​fsvs/src/status.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/src/status.c?​view=diff&pathre​v=2484&r1=2483​&r2=2484
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/src/status.c (original)
+++ branches/fsvs-1.2.x/​fsvs/src/status.c 2015-12-29 02:43:57-0800
@@ -9,6 +9,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <time.h>
+#include <assert.h>
 
 #include "global.h"
 #include "actions.h"
@@ -610,8 +611,11 @@
     STOPIF( cch__add(cache, 0, NULL, 128, &string), NULL);
     cc=cache->entries + cache->lru;
 
+ /* To quiesce clang */
+ assert(string);
+
     last_len=0;
- if (string) *string=0;
+ *string=0;
     for(i=0; i<max; i++)
     {
         if (value & data[i].val)

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r2484 - branches/fsvs-1.2.x/fsvs/src/status.c pmarek P.Marek 2015-12-29 02:43:58 PST
Messages per page: