aboutsummaryrefslogtreecommitdiff
path: root/jim-interactive.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-interactive.c')
-rw-r--r--jim-interactive.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/jim-interactive.c b/jim-interactive.c
index 60a5edc..17e43d2 100644
--- a/jim-interactive.c
+++ b/jim-interactive.c
@@ -19,7 +19,7 @@ char *Jim_HistoryGetline(const char *prompt)
#ifdef USE_LINENOISE
return linenoise(prompt);
#else
- int len;
+ int len;
char *line = malloc(MAX_LINE_LEN);
fputs(prompt, stdout);
@@ -29,10 +29,10 @@ char *Jim_HistoryGetline(const char *prompt)
free(line);
return NULL;
}
- len = strlen(line);
- if (len && line[len - 1] == '\n') {
- line[len - 1] = '\0';
- }
+ len = strlen(line);
+ if (len && line[len - 1] == '\n') {
+ line[len - 1] = '\0';
+ }
return line;
#endif
}