1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3: Remove an unneeded check

In many other places we already assume that if asprintf returns !=-1 then the
result is allocated.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan 29 15:00:09 CET 2011 on sn-devel-104
This commit is contained in:
Volker Lendecke 2011-01-29 14:07:59 +01:00 committed by Volker Lendecke
parent c52c75338f
commit a042617e97

View File

@ -272,7 +272,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int *
*err = 0;
ret = asprintf(&fullpath, "%s/%s", sharepath, filename);
if (ret == -1 || fullpath == NULL) {
if (ret == -1) {
*err = 1;
return 0;
}