diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-20 06:52:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-20 06:52:39 +0000 |
commit | 2a0141c50f46f85eed075937fe05a37c6b54169a (patch) | |
tree | 53fa5c4e2f69508077facc66c0991c13d025eaba /source3/smbwrapper | |
parent | 26b299dd528348b97e2db90660b52d664a1d716a (diff) | |
download | samba-2a0141c50f46f85eed075937fe05a37c6b54169a.tar.gz samba-2a0141c50f46f85eed075937fe05a37c6b54169a.tar.xz samba-2a0141c50f46f85eed075937fe05a37c6b54169a.zip |
oops, I ot the return type of putenv() wrong
(This used to be commit 5b7b24d3f9a74b241f7e767de4a2bae601adf88a)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r-- | source3/smbwrapper/shared.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbwrapper/shared.c b/source3/smbwrapper/shared.c index 52ed9baac8..58a37254e8 100644 --- a/source3/smbwrapper/shared.c +++ b/source3/smbwrapper/shared.c @@ -187,13 +187,14 @@ int smbw_setenv(const char *name, const char *value) { pstring s; char *p; + int ret = -1; slprintf(s,sizeof(s)-1,"%s=%s", name, value); p = strdup(s); - if (p) p = putenv(p); + if (p) ret = putenv(p); - return p; + return ret; } |