aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/core/conda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/core/conda.c b/src/lib/core/conda.c
index 8fb45cf..5954f20 100644
--- a/src/lib/core/conda.c
+++ b/src/lib/core/conda.c
@@ -213,7 +213,6 @@ int conda_exec(const char *args) {
}
int conda_activate(const char *root, const char *env_name) {
- int fd = -1;
FILE *fp = NULL;
const char *init_script_conda = "/etc/profile.d/conda.sh";
const char *init_script_mamba = "/etc/profile.d/mamba.sh";
@@ -231,7 +230,8 @@ int conda_activate(const char *root, const char *env_name) {
// Emulate mktemp()'s behavior. Give us a unique file name, but don't use
// the file handle at all. We'll open it as a FILE stream soon enough.
sprintf(logfile, "%s/%s", globals.tmpdir, "shell_XXXXXX");
- fd = mkstemp(logfile);
+
+ int fd = mkstemp(logfile);
if (fd < 0) {
perror(logfile);
return -1;