Skip to content
Snippets Groups Projects
Commit eecd9282 authored by Utz-Uwe Haus's avatar Utz-Uwe Haus
Browse files

Fix check for 0-size CDOs

reported no-memory-registration errors for almost all CDOs now due to a
typo in dccf6ec0
parent 3db4f171
No related branches found
No related tags found
1 merge request!42Draft: Resolve "Improve performance of mstro_attribute_val_cmp_str"
......@@ -808,7 +808,7 @@ mstro_pc__handle_transfer_completed(Mstro__Pool__MstroMsg *msg)
goto DONE;
}
int64_t realsize = *(int64_t*)size;
if(realsize==-1 && realsize!=0) {
if(realsize==-1 || realsize==0) {
s=MSTRO_OK; // 0-size CDO or type-0 CDO
DEBUG("Source CDO empty, doing NULL transfer\n");
s=MSTRO_OK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment