remove extra curly brace in tomato_load()

fixes #195 which was introduced in 6532b02cab
This commit is contained in:
Thomas Bernard 2016-04-24 22:20:14 +02:00
parent 1337158fcf
commit 9a5eaaa767
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ tomato_load(void)
current_time = time(NULL);
s[sizeof(s) - 1] = 0;
while (fgets(s, sizeof(s) - 1, f)) {
if (sscanf(s, "%3s %hu %31s %hu [%*[^]]] %u", proto, &eport, iaddr, &iport, &timestamp) >= 4) {
if (sscanf(s, "%3s %hu %31s %hu [%*[^]]] %u", proto, &eport, iaddr, &iport, &timestamp) >= 4)
{
if (((a = strchr(s, '[')) != NULL) && ((b = strrchr(a, ']')) != NULL))
{