modules: Return in dummy_stat() if we have no memory.

This commit is contained in:
Andreas Schneider 2012-10-19 20:30:07 +02:00
parent 5844b203e6
commit 351c6089fc

View file

@ -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;