1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s4:ntvfs: fix O3 error unused result of asprintf in svfs_file_utime

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
This commit is contained in:
Michael Adam
2016-03-26 02:08:41 +01:00
parent 8e521379d5
commit b64a24eb05

View File

@ -158,7 +158,12 @@ int svfs_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) {
errno = ENOMEM;
return -1;
}
if (!fd_path) {
errno = ENOMEM;
return -1;