Changeset a42d7d8 in mainline for uspace/lib/bithenge/script.c
- Timestamp:
- 2012-08-19T05:28:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fae4d30
- Parents:
- 1c79996
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/script.c
r1c79996 ra42d7d8 731 731 } 732 732 int rc = bithenge_binary_expression(&expr, op, expr, expr2); 733 if (rc != EOK) 734 error_errno(state, rc); 733 if (rc != EOK) { 734 expr = NULL; 735 error_errno(state, rc); 736 } 735 737 } 736 738 if (state->error != EOK) { … … 940 942 int rc = bithenge_if_transform(&switch_xform, exprs[num], 941 943 xforms[num], switch_xform); 942 if (rc != EOK) 943 error_errno(state, rc); 944 if (rc != EOK) { 945 switch_xform = NULL; 946 error_errno(state, rc); 947 } 944 948 } 945 949 … … 1189 1193 if (state->error != EOK) 1190 1194 break; 1191 xforms[num] = parse_transform_no_compose(state); 1192 num++; 1195 xforms[num++] = parse_transform_no_compose(state); 1193 1196 } 1194 1197 if (state->error != EOK) { 1195 while (xforms && num --)1196 bithenge_transform_dec_ref(xforms[ num]);1198 while (xforms && num > 1) 1199 bithenge_transform_dec_ref(xforms[--num]); 1197 1200 free(xforms); 1198 1201 bithenge_transform_dec_ref(result);
Note:
See TracChangeset
for help on using the changeset viewer.