| … | … | @@ -421,7 +421,7 @@ char *lg_readline(const char *mb_prompt) |
| 421 | 421 | wc_prompt = malloc (sz*sizeof(wchar_t)); |
| 422 | 422 | mbstowcs(wc_prompt, mb_prompt, sz); |
| 423 | 423 | |
| 424 | | hist = history_winit(); /* Init built-in history */ |
| 424 | hist = history_winit(); /* Init built-in history */ |
| 425 | 425 | el = el_init("link-parser", stdin, stdout, stderr); |
| 426 | 426 | history_w(hist, &ev, H_SETSIZE, 100); |
| 427 | 427 | history_w(hist, &ev, H_SETUNIQUE, 1); |
| … | … | @@ -444,7 +444,7 @@ char *lg_readline(const char *mb_prompt) |
| 444 | 444 | el_source(el, NULL); /* Source the user's defaults file. */ |
| 445 | 445 | } |
| 446 | 446 | |
| 447 | | int numc = 1; /* Uninitialized at libedit. */ |
| 447 | int numc = 1; /* Uninitialized at libedit. */ |
| 448 | 448 | const wchar_t *wc_line = el_wgets(el, &numc); |
| 449 | 449 | |
| 450 | 450 | /* Received end-of-file */ |
| … | … | @@ -469,7 +469,7 @@ char *lg_readline(const char *mb_prompt) |
| 469 | 469 | /* fwprintf(stderr, L"==> got %d %ls", numc, wc_line); */ |
| 470 | 470 | |
| 471 | 471 | size_t byte_len = wcstombs(NULL, wc_line, 0) + 4; |
| 472 | | free(mb_line); // free previous. |
| 472 | free(mb_line); // free previous. |
| 473 | 473 | if (byte_len == (size_t)-1) |
| 474 | 474 | { |
| 475 | 475 | prt_error("Error: Unable to process UTF8 in input string.\n"); |