Commit 21c9df5b authored by Rei's avatar Rei

Fixed random crashes and crash on group link request

- (Random crashes) Fixed uninitialized variable prompt_was; please, use static variables to make life easier to everyone.
- Removed duplicate line 2138. The print_start/print_end mechanism is weak, there's a lot of redundant code and bugs are hard to catch.
parent cf6cb902
......@@ -2135,7 +2135,6 @@ void print_string_gw (struct tgl_state *TLSR, void *extra, int success, const ch
}
if (!success) { print_fail (ev); return; }
mprint_start (ev);
mprint_start (ev);
if (!enable_json) {
mprintf (ev, "%s\n", name);
} else {
......@@ -3166,7 +3165,7 @@ int readline_active;
int saved_point;
char *saved_line;
int prompt_was;
static int prompt_was;
void deactivate_readline (void) {
......
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