diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-21 23:14:19 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-21 23:35:57 +0200 |
commit | 68363049579c408e56170933cd0b5094934f7c20 (patch) | |
tree | 9b08da9dcaf7ac609eaf26c84064d228b3280fcf | |
parent | 366333c08fe1d26276a90391dcec0526a65cb2a2 (diff) | |
download | samba-68363049579c408e56170933cd0b5094934f7c20.tar.gz samba-68363049579c408e56170933cd0b5094934f7c20.tar.bz2 samba-68363049579c408e56170933cd0b5094934f7c20.zip |
s4:ntvfs/posix/pvfs_wait.c - fix a "calculated value unused" warning
The calculated value is "req" (!= NULL) if "talloc_reference" did work correctly
or it is NULL if we ran out of memory.
-rw-r--r-- | source4/ntvfs/posix/pvfs_wait.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c index e6977efe5d..876ce52797 100644 --- a/source4/ntvfs/posix/pvfs_wait.c +++ b/source4/ntvfs/posix/pvfs_wait.c @@ -102,9 +102,11 @@ static void pvfs_wait_timeout(struct tevent_context *ev, pwait->reason = PVFS_WAIT_TIMEOUT; - talloc_reference(ev, req); - ntvfs_async_setup(pwait->req, pwait); - talloc_unlink(ev, req); + req = talloc_reference(ev, req); + if (req != NULL) { + ntvfs_async_setup(req, pwait); + talloc_unlink(ev, req); + } } |