Browse Source

Fix get_file function from the MTP module

The return code for the get_file function was inverted: it
returned an error when the transfer was actually successful.
master
Damien Goutte-Gattat 5 years ago
parent
commit
02f141b149
  1. 4
      src/scheme-libmtp.c

4
src/scheme-libmtp.c

@ -195,10 +195,10 @@ gfsec_scheme_libmtp_get_file(gfsec_scheme_t scheme,
getfile_cb, &cb_data, NULL, NULL) != 0 ) {
free(*buffer);
*buffer = NULL;
rc = GFSEC_SCHEME_STATUS_SUCCESS;
rc = GFSEC_SCHEME_STATUS_ERROR;
}
else
rc = GFSEC_SCHEME_STATUS_ERROR;
rc = GFSEC_SCHEME_STATUS_SUCCESS;
}
}

Loading…
Cancel
Save