git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b299d
)
oops, I ot the return type of putenv() wrong
author
Andrew Tridgell
<tridge@samba.org>
Tue, 20 Oct 1998 06:52:39 +0000
(06:52 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 20 Oct 1998 06:52:39 +0000
(06:52 +0000)
(This used to be commit
5b7b24d3f9a74b241f7e767de4a2bae601adf88a
)
source3/smbwrapper/shared.c
patch
|
blob
|
history
diff --git
a/source3/smbwrapper/shared.c
b/source3/smbwrapper/shared.c
index 52ed9baac801adb6fa7c08dae4374aa8b2a52e5e..58a37254e88797be925678e3aa5e642fcf5a4119 100644
(file)
--- 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
;
}