tload: Call longjmp() 1 instead of 0.
Do it explicitly instead of the implicit "longjmp() cannot cause 0 to be returned. If longjmp() is invoked with a second argument of 0, 1 will be returned instead."
This commit is contained in:
parent
7664d9f306
commit
afbb0f4886
2
tload.c
2
tload.c
@ -81,7 +81,7 @@ static void setsize(int i)
|
|||||||
memset(screen, ' ', scr_size - 1);
|
memset(screen, ' ', scr_size - 1);
|
||||||
*(screen + scr_size - 2) = '\0';
|
*(screen + scr_size - 2) = '\0';
|
||||||
if (i)
|
if (i)
|
||||||
longjmp(jb, 0);
|
longjmp(jb, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__ ((__noreturn__)) usage(FILE * out)
|
static void __attribute__ ((__noreturn__)) usage(FILE * out)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user