aboutsummaryrefslogtreecommitdiff
path: root/src/writeenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writeenv.c')
-rw-r--r--src/writeenv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/writeenv.c b/src/writeenv.c
index 4a0b64df5..833d9a679 100644
--- a/src/writeenv.c
+++ b/src/writeenv.c
@@ -64,6 +64,10 @@ static void internalSetEnv(const char * name, char * value)
/* Add your OS-specific code here. */
#ifdef __riscos__
_kernel_setenv(name, value);
+#elif defined (CURLDEBUG)
+ extern FILE *curl_debuglogfile;
+ if (curl_debuglogfile)
+ fprintf (curl_debuglogfile, "ENV %s = %s\n", name, value);
#endif
return;
}
@@ -100,6 +104,8 @@ void ourWriteEnv(CURL *curl)
else
internalSetEnv(variables[i].name, NULL);
break;
+ default:
+ break;
}
}