git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8484e0
)
Attempt to fix the build on IRIX
author
Volker Lendecke
<vl@samba.org>
Wed, 4 Mar 2009 11:21:26 +0000
(12:21 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 4 Mar 2009 11:28:39 +0000
(12:28 +0100)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 89c706d874683e91fee681d74e1b4b5abd0ba48c..f49a1bc4c948311dc507a378628ad48353974496 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-4668,7
+4668,9
@@
static int max_open_files(void)
#if (defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE))
{
- struct rlimit rl = {};
+ struct rlimit rl;
+
+ ZERO_STRUCT(rl);
if (getrlimit(RLIMIT_NOFILE, &rl) == 0)
rlimit_max = rl.rlim_cur;