mirror of
https://github.com/neovim/neovim
synced 2025-07-25 07:41:53 +00:00
coverity/13695: Unchecked return value: RI.
Problem : Unchecked return value (CHECKED_RETURN) @ 8554. Diagnostic : Real issue. Rationale : Other invocations of `do_source` are checked and generate an error message if fail. There seems to be no reason why this particular instance could not fail the same. Resolution : Check invocation and generate error message on failure.
This commit is contained in:
@ -8543,7 +8543,9 @@ static void ex_loadview(exarg_T *eap)
|
||||
|
||||
fname = get_view_file(*eap->arg);
|
||||
if (fname != NULL) {
|
||||
do_source(fname, FALSE, DOSO_NONE);
|
||||
if (do_source(fname, FALSE, DOSO_NONE) == FAIL) {
|
||||
EMSG2(_(e_notopen), fname);
|
||||
}
|
||||
free(fname);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user