[Pkg-owncloud-commits] [owncloud-client] 468/498: Fix warning
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:19 UTC 2015
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 ce5be89a1846b4b75ec8bfa98bdb594773983beb
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Thu Aug 6 13:56:58 2015 +0200
Fix warning
csync_vio_local_unix.c:109:7: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
asprintf(&file_stat->original_name, "%s/%s", handle->path, dirent->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
csync/src/vio/csync_vio_local_unix.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/csync/src/vio/csync_vio_local_unix.c b/csync/src/vio/csync_vio_local_unix.c
index 629e64e..49cf7c5 100644
--- a/csync/src/vio/csync_vio_local_unix.c
+++ b/csync/src/vio/csync_vio_local_unix.c
@@ -106,7 +106,9 @@ csync_vio_file_stat_t *csync_vio_local_readdir(csync_vio_handle_t *dhandle) {
file_stat->name = c_utf8_from_locale(dirent->d_name);
if (file_stat->name == NULL) {
//file_stat->original_name = c_strdup(dirent->d_name);
- asprintf(&file_stat->original_name, "%s/%s", handle->path, dirent->d_name);
+ if (asprintf(&file_stat->original_name, "%s/%s", handle->path, dirent->d_name)) {
+ goto err;
+ }
CSYNC_LOG(CSYNC_LOG_PRIORITY_WARN, "Invalid characters in file/directory name, please rename: \"%s\" (%s)",
dirent->d_name, handle->path);
}
--
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