sgr poc: don't put critical logic in assert() #624

This commit is contained in:
nick black 2020-05-21 18:02:53 -04:00
parent 4ab0e67155
commit f9f76046d5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -64,7 +64,9 @@ int main(int argc, char** argv){
}
cols += i;
i = putp(tiparm(sgr, 0, 0, 0, 0, 0, 0, 0, 0, 0));
assert(OK == i);
if(i != OK){
return EXIT_FAILURE;
}
pivot = pivot_on(pivot, sgrs, sgrcount);
if(cols >= 60){ // FIXME
printf("\n");