[Pkg-owncloud-commits] [owncloud-client] 231/333: Safe use of c_strdup

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 67ae541e2ab128a6d1fbaca06e1f23e9ed0b5a75
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Mar 26 17:49:48 2014 +0100

    Safe use of c_strdup
---
 csync/src/csync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csync/src/csync.c b/csync/src/csync.c
index 329818f..6d8d294 100644
--- a/csync/src/csync.c
+++ b/csync/src/csync.c
@@ -453,7 +453,7 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
 
       if( other_node ) {
           csync_file_stat_t *other_stat = (csync_file_stat_t*)other_node->data;
-          trav.other.etag = c_strdup(other_stat->etag);
+          trav.other.etag = other_stat->etag ? c_strdup(other_stat->etag) : NULL;
           trav.other.file_id = c_strdup(other_stat->file_id);
           trav.other.instruction = other_stat->instruction;
           trav.other.modtime = other_stat->modtime;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list