Update txtp.c

Fix "mode" keyval parse to else-if condition so other conditions don't fall through it.
This commit is contained in:
Christopher Snowhill 2018-05-26 16:26:55 -07:00 committed by GitHub
parent 93838471df
commit f26b99b6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,7 +316,7 @@ static int parse_keyval(txtp_header * txtp, const char * key, const char * val)
else if (0==strcmp(key,"loop_end_segment")) {
if (!parse_num(val, &txtp->loop_end_segment)) goto fail;
}
if (0==strcmp(key,"mode")) {
else if (0==strcmp(key,"mode")) {
if (0==strcmp(val,"layers")) {
txtp->is_layered = 1;
}