1
0
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:
Volker Lendecke
2008-02-25 15:24:49 +01:00
parent cd95385207
commit 3176392878
13 changed files with 86 additions and 57 deletions

View File

@ -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;
}