mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Fix some warnings
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0ae
)
This commit is contained in:
@ -1904,8 +1904,7 @@ int create_pipe_sock(const char *socket_dir,
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
asprintf(&path, "%s/%s", socket_dir, socket_name);
|
||||
if (!path) {
|
||||
if (asprintf(&path, "%s/%s", socket_dir, socket_name) == -1) {
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user