Commit 65d4f55c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Minor polishing



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4801 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 840ab584
......@@ -240,7 +240,7 @@ mgt_SHM_Init(const char *fn, const char *l_arg)
/* Fill or not ? */
if (*ap != NULL) {
if (*ap == '\0')
if (**ap == '\0')
fill = 1;
else if (!strcmp(*ap, "-"))
fill = 0;
......@@ -253,6 +253,9 @@ mgt_SHM_Init(const char *fn, const char *l_arg)
fill = 1;
}
if (*ap != NULL)
ARGV_ERR("\t-l ...: Too many sub-args\n");
FreeArgv(av);
size = s1 + s2;
......@@ -260,9 +263,6 @@ mgt_SHM_Init(const char *fn, const char *l_arg)
size += ps - 1;
size &= ~(ps - 1);
if (av[2] == NULL)
q = str2bytes(av[2], &size, 0);
i = open(fn, O_RDWR, 0644);
if (i >= 0 && vsl_goodold(i, size, s2)) {
fprintf(stderr, "Using old SHMFILE\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment