[dia] winmain.c: remove broken dump of environment variables
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] winmain.c: remove broken dump of environment variables
- Date: Sun, 18 Nov 2012 12:36:32 +0000 (UTC)
commit 68d59050e1cccfe051efd7e8cda1ffcc5d87f267
Author: Hans Breuer <hans breuer org>
Date: Sun Nov 18 13:30:13 2012 +0100
winmain.c: remove broken dump of environment variables
The breaking commit was:
Commit:e0b81659369bd1546f728bacef72f6ea7b247aa2
* Use g_listenv() rather than runtime variable _environ
from that on only the variable names where put into the log file.
Instead of fixing the code to work as before it is removed, the
additional information was not really useful anyway.
app/winmain.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/app/winmain.c b/app/winmain.c
index d210299..0be18db 100644
--- a/app/winmain.c
+++ b/app/winmain.c
@@ -131,16 +131,11 @@ dia_redirect_console (void)
if (file != INVALID_HANDLE_VALUE)
{
- gchar** envlist = g_listenv ();
- char* log2 = g_strjoinv("\r\n", envlist);
char* log = g_strdup_printf ("Dia (%s) instance %d started "
- "using Gtk %d.%d.%d (%d)\r\n%s\r\n",
+ "using Gtk %d.%d.%d (%d)\r\n",
VERSION, i + 1,
- gtk_major_version, gtk_minor_version, gtk_micro_version, gtk_binary_age,
- log2);
+ gtk_major_version, gtk_minor_version, gtk_micro_version, gtk_binary_age);
guint32 dwWritten; /* looks like being optional in msdn, but isn't */
- g_free (log2);
- g_strfreev (envlist);
if (!verbose || WriteFile (file, log, strlen(log), &dwWritten, 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]