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 | 5b7b24d3f9a74b241f7e767de4a2bae601adf88a (patch) | |
tree | 0d33330bd386aff8caaa33d9049ead930ed1a46a /source | |
parent | dc08f1a5c92e86c41dc03f6a4d10d5779f3d9c34 (diff) | |
download | samba-5b7b24d3f9a74b241f7e767de4a2bae601adf88a.tar.gz samba-5b7b24d3f9a74b241f7e767de4a2bae601adf88a.tar.xz samba-5b7b24d3f9a74b241f7e767de4a2bae601adf88a.zip |
oops, I ot the return type of putenv() wrong
Diffstat (limited to 'source')
-rw-r--r-- | source/smbwrapper/shared.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/smbwrapper/shared.c b/source/smbwrapper/shared.c index 52ed9baac80..58a37254e88 100644 --- a/source/smbwrapper/shared.c +++ b/source/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; } |