diff --git a/src/gmnlm.c b/src/gmnlm.c

index e1a488a1f06b8290b37299be406b762957b175cc..c51c450ce74127931838b5890a54d21fd8f26fef 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -652,7 +652,9 @@ set_url(browser, url, &browser->history);

result = PROMPT_ANSWERED;

goto exit;

case 'b':

- if (in[1]) historyhops =(int)strtol(in+1, &endptr, 10);

+ if (in[1]) {

+ historyhops =(int)strtol(in+1, &endptr, 10);

+ }

while (historyhops > 0) {

if (browser->history->prev) {

browser->history = browser->history->prev;

@@ -663,7 +665,9 @@ set_url(browser, browser->history->url, NULL);

result = PROMPT_ANSWERED;

goto exit;

case 'f':

- if (in[1]) historyhops =(int)strtol(in+1, &endptr, 10);

+ if (in[1]) {

+ historyhops =(int)strtol(in+1, &endptr, 10);

+ }

while (historyhops > 0) {

if (browser->history->next) {

browser->history = browser->history->next;