fix(lib): check if hyou is empty on remove

This commit is contained in:
2022-12-30 18:20:52 +03:00
parent 5daa0db847
commit 32fea5cd2b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ int tanabata_sasa_rem_by_id(Tanabata *tanabata, uint64_t sasa_id) {
}
int tanabata_sasa_rem_by_path(Tanabata *tanabata, const char *path) {
if (path == NULL) {
if (tanabata->sasahyou.size == 0 || path == NULL) {
return 1;
}
char *abspath = NULL;