Skip to content

Commit

Permalink
Return -1 on 0 data type (fuji quirk)
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Apr 6, 2024
1 parent 25c27d8 commit e8790ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ int ptp_parse_prop_value(struct PtpRuntime *r) {
type = PTP_TC_UINT16; break;
case 4:
type = PTP_TC_UINT32; break;
case 0:
return -1;
default:
ptp_panic("ptp_parse_prop_value: unknown data type");
ptp_panic("ptp_parse_prop_value: unknown data type size");
}

int out;
Expand Down

0 comments on commit e8790ec

Please sign in to comment.