mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
modules: Return in dummy_stat() if we have no memory.
This commit is contained in:
parent
5844b203e6
commit
351c6089fc
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ static int dummy_stat(const char *uri, csync_vio_file_stat_t *buf) {
|
|||
buf->name = c_basename(uri);
|
||||
if (buf->name == NULL) {
|
||||
csync_vio_file_stat_destroy(buf);
|
||||
return -1;
|
||||
}
|
||||
buf->fields = CSYNC_VIO_FILE_STAT_FIELDS_NONE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue