Fix an uninitialized variable
authorVolker Lendecke <vl@samba.org>
Sat, 21 Feb 2009 11:49:01 +0000 (12:49 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 21 Feb 2009 11:49:01 +0000 (12:49 +0100)
source3/param/loadparm.c

index cb568256c7e06a398663de13e1f36074822d964d..3d29f3afd93ab5789dfa6b8aedd797588d0d6a4f 100644 (file)
@@ -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;