summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-21 12:49:01 +0100
committerVolker Lendecke <vl@samba.org>2009-02-21 12:49:01 +0100
commit25627234451735154d7c8a12ed920397d0371b1c (patch)
tree4bbe5d5cf9cc20a1eb6f29bc86dd37658cab87da /source3/param
parentc207fe42a796cf33f1901caeb2c4c1e493b94471 (diff)
downloadsamba-25627234451735154d7c8a12ed920397d0371b1c.tar.gz
samba-25627234451735154d7c8a12ed920397d0371b1c.tar.bz2
samba-25627234451735154d7c8a12ed920397d0371b1c.zip
Fix an uninitialized variable
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index cb568256c7..3d29f3afd9 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4665,7 +4665,7 @@ static void init_printer_values(struct service *pService)
*/
static int max_open_files(void)
{
- int sysctl_max;
+ int sysctl_max = MAX_OPEN_FILES;
struct rlimit rl;
bool sysctl_worked = false, rlimit_worked = false;