[sixel] goto valerr on value error

pull/2549/head
nick black 2 years ago
parent cae41c3a1a
commit 509595f0e0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1532,7 +1532,7 @@ gettcap(const char* s, char** key, char** val){
}
if(firstnibble && (!isdigit(*end) || *end - '0' >= 8)){
logerror("bad value in %s", s);
return NULL;
goto valerr;
}
firstnibble = !firstnibble;
++end;
@ -1558,7 +1558,7 @@ gettcap(const char* s, char** key, char** val){
valerr:
free(*key);
*key = NULL;
return end;
return NULL;
}
// replace \E with actual 0x1b for use as a terminfo-like format string,

Loading…
Cancel
Save