mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
sgr poc: don't put critical logic in assert() #624
This commit is contained in:
parent
4ab0e67155
commit
f9f76046d5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user