diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-15 09:47:42 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-15 09:47:42 +0200 |
commit | 33c957d43fe4c779d0601ff3c440c785190e3a80 (patch) | |
tree | 87a5f5c9f173123465a6d7ad42a493b070f71348 /src/io.c | |
parent | 1842e4ff88f93490966398ae9b763f6dba069799 (diff) | |
parent | eac2a2cc668f491c7d265c5fe6c50f51a60c6256 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -66,7 +66,7 @@ static int mkdir_gen(const char *d, unsigned int mode) return 1; if (errno != EEXIST) return -errno; - if (lstat(d, &sb) == 0) { + if (stat(d, &sb) == 0) { #if defined(_WIN32) if (sb.st_mode & S_IFDIR) #else @@ -424,6 +424,7 @@ HX_realpath_symres(struct HX_realpath_state *state, const char *path) return -ELOOP; #endif + assert(state->link_target != nullptr); if (*state->link_target == '/') { *state->dest = '\0'; if (HXmc_setlen(&state->dest, 0) == NULL) |