summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-29 14:07:59 +0100
committerVolker Lendecke <vlendec@samba.org>2011-01-29 15:00:09 +0100
commita042617e97e2094b1372ba6f4f6d164638e5f871 (patch)
tree0e0c7a43a7d88c99b8179dd87089b91762cc14ca /source3/libsmb
parentc52c75338f91b9a4813b695110a621e5b7c21488 (diff)
downloadsamba-a042617e97e2094b1372ba6f4f6d164638e5f871.tar.gz
samba-a042617e97e2094b1372ba6f4f6d164638e5f871.tar.bz2
samba-a042617e97e2094b1372ba6f4f6d164638e5f871.zip
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb_share_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c
index fd5f0ea227..3174500820 100644
--- a/source3/libsmb/smb_share_modes.c
+++ b/source3/libsmb/smb_share_modes.c
@@ -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;
}