commit 279d204752d9f8c22b1a45fa30e4aa8e45f43fb9 from: Stefan Sperling date: Fri Jul 29 10:51:22 2022 UTC fix two missing error checks in tog; found by florian with scan-build commit - 7375fc126e0f55289656336c6c8160c46efaba20 commit + 279d204752d9f8c22b1a45fa30e4aa8e45f43fb9 blob - aaca1ae9bd59788b771d3797213ce44b033f50a8 blob + 2ef7d62757611aaffaf795dac6d7b8b26de7d804 --- tog/tog.c +++ tog/tog.c @@ -1249,7 +1249,11 @@ switch_split(struct tog_view *view) v->mode = TOG_VIEW_SPLIT_VERT; if (v->mode == TOG_VIEW_SPLIT_HRZN) { err = offset_selection_down(v); + if (err) + return err; err = offset_selection_down(v->child); + if (err) + return err; } else { offset_selection_up(v); offset_selection_up(v->child);