}
free(properties);
+ if (nrofprops == 0 || props == NULL) {
+ LIBMTP_INFO("prop list doesn't exist");
+ return -1;
+ }
+
ret = ptp_mtp_sendobjectproplist(params, &store, &localph, &filedata->item_id,
of, filedata->filesize, props, nrofprops);
}
free(properties);
+ if (nrofprops == 0 || props == NULL) {
+ LIBMTP_INFO("prop list doesn't exist");
+ return -1;
+ }
+
ret = ptp_mtp_sendobjectproplist(params, &store, &localph, newid,
objectformat, 0, props, nrofprops);