made the rem parameter optional in mio_json_feed()

This commit is contained in:
hyung-hwan 2021-07-14 05:42:42 +00:00
parent 33afbfc419
commit 140e1126ed

View File

@ -874,12 +874,12 @@ int mio_json_feed (mio_json_t* json, const void* ptr, mio_oow_t len, mio_oow_t*
if (stop_if_ever_completed && x >= 2) if (stop_if_ever_completed && x >= 2)
{ {
*rem = len - total; if (rem) *rem = len - total;
return 1; return 1;
} }
} }
*rem = len - total; if (rem) *rem = len - total;
return 0; return 0;
} }