Ensure master password isn't lost after ending editline context.
This commit is contained in:
parent
6aa50bac04
commit
c3c2de5d14
@ -197,7 +197,7 @@ int main(int argc, char *const argv[]) {
|
||||
EditLine *e = el_init("mpw", stdin, stdout, stderr);
|
||||
int count = 0;
|
||||
char *line = el_gets(e, &count);
|
||||
masterPassword = strsep(&line, "\n");
|
||||
masterPassword = strdup(strsep(&line, "\n"));
|
||||
el_end(e);
|
||||
|
||||
if (count < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user