summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-04-05 12:18:17 +0200
committerMichael Adam <obnox@samba.org>2016-05-13 00:16:15 +0200
commit93b1dac1ca3db596b4bac9ba7b5626f5cdd6b658 (patch)
tree3384766b035b8b668eeeaf4949bd339f4c67816a /source4/ntvfs
parentfa80f1a937b699bf93ceee85cd033424f6987b29 (diff)
downloadsamba-93b1dac1ca3db596b4bac9ba7b5626f5cdd6b658.tar.gz
s4:ntvfs: fix O3 error unused result of asprintf in cifspsx_file_utime()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/cifs_posix_cli/svfs_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ntvfs/cifs_posix_cli/svfs_util.c b/source4/ntvfs/cifs_posix_cli/svfs_util.c
index a9e6ba49925..cf881a1c9ae 100644
--- a/source4/ntvfs/cifs_posix_cli/svfs_util.c
+++ b/source4/ntvfs/cifs_posix_cli/svfs_util.c
@@ -165,7 +165,11 @@ int cifspsx_file_utime(int fd, struct utimbuf *times)
char *fd_path = NULL;
int ret;
- asprintf(&fd_path, "/proc/self/%d", fd);
+ ret = asprintf(&fd_path, "/proc/self/%d", fd);
+ if (ret == -1) {
+ return -1;
+ }
+
if (!fd_path) {
errno = ENOMEM;
return -1;