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

This commit is contained in:
nick black 2020-05-21 18:03:36 -04:00
parent f9f76046d5
commit 57fb7fc96a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -58,7 +58,9 @@ int main(int argc, char** argv){
cols += printf(" (%02d)", pivot);
i = putp(tiparm(sgr, sgrs[0], sgrs[1], sgrs[2], sgrs[3], sgrs[4],
sgrs[5], sgrs[6], sgrs[7], sgrs[8]));
assert(OK == i);
if(i != OK){
return EXIT_FAILURE;
}
if((i = printf(" %s ", argv[0])) < 0){
return EXIT_FAILURE;
}