1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s3: Fix Coverity ID 2307, NULL_RETURNS

This commit is contained in:
Volker Lendecke 2011-04-22 09:39:37 +02:00
parent 9a0676d5c9
commit 3e8a8fad59

View File

@ -134,6 +134,10 @@ int sys_get_nfs_quota(const char *path, const char *bdev,
memset(cutstr, '\0', len+1);
host = strncat(cutstr, mnttype, sizeof(char) * len);
testpath = strchr_m(mnttype, ':');
if (testpath == NULL) {
errno = EINVAL;
goto out;
}
testpath++;
gq_args.gqa_pathp = testpath;
gq_args.gqa_uid = id.uid;