diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2026-04-09 06:58:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-09 06:58:14 -0400 |
| commit | 1455ef340b1986ddd7e1c519f534ad051308a1ef (patch) | |
| tree | 04255d8aa35cd689837614aa5c74bc8629037827 /src/lib/core | |
| parent | 269e2c5eb511ef74fe293c428202ddeb38ada0db (diff) | |
| parent | e800cc620976bf6ea8198ac66811f4596b6a3af1 (diff) | |
| download | stasis-1455ef340b1986ddd7e1c519f534ad051308a1ef.tar.gz | |
Merge pull request #131 from jhunkeler/realloc-sefault-tests_add
tests_add: Fix incorrect size used by realloc
Diffstat (limited to 'src/lib/core')
| -rw-r--r-- | src/lib/core/conda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/core/conda.c b/src/lib/core/conda.c index de6130f..c9be7a3 100644 --- a/src/lib/core/conda.c +++ b/src/lib/core/conda.c @@ -58,6 +58,9 @@ int micromamba(const struct MicromambaInfo *info, char *command, ...) { char rcpath[PATH_MAX]; sprintf(rcpath, "%s/.condarc", info->conda_prefix); touch(rcpath); + if (errno == ENOENT) { + errno = 0; + } setenv("CONDARC", rcpath, 1); setenv("MAMBA_ROOT_PREFIX", info->conda_prefix, 1); |
