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:
@ -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;
|
||||
|
Reference in New Issue
Block a user