Download raw body.
tog: unconditionally set x/y in view_get_split()
Suggested by op on irc. I noticed this when cooking the diff. We initialise begin_{x,y} in all the callers so only conditionally set x/y pointers in view_get_split(). But for robustness, we should initialise here too. diff 9b058f456d15d60a89334ce3e7f0a7c22e182c55 /Users/mark/Library/Mobile Documents/com~apple~CloudDocs/src/got-current blob - 6a0c6dbff39ee1a8db173cbc3fa1fbf0918eecab file + tog/tog.c --- tog/tog.c +++ tog/tog.c @@ -2858,6 +2858,9 @@ view_get_split(struct tog_view *view, int *y, int *x) { char *mode; + *x = 0; + *y = 0; + mode = getenv("TOG_VIEW_SPLIT_MODE"); if (!mode || mode[0] != 'h') { -- Mark Jamsek <fnc.bsdbox.org> GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68
tog: unconditionally set x/y in view_get_split()