gnome-terminal r2967 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2967 - trunk/src
- Date: Mon, 4 Aug 2008 16:59:21 +0000 (UTC)
Author: chpe
Date: Mon Aug 4 16:59:21 2008
New Revision: 2967
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2967&view=rev
Log:
Use g_unsetenv here.
Modified:
trunk/src/terminal.c
Modified: trunk/src/terminal.c
==============================================================================
--- trunk/src/terminal.c (original)
+++ trunk/src/terminal.c Mon Aug 4 16:59:21 2008
@@ -1161,10 +1161,10 @@
parsing_results = option_parsing_results_new (&argc, argv);
startup_id = g_getenv ("DESKTOP_STARTUP_ID");
- if (startup_id != NULL && *startup_id != '\0')
+ if (startup_id != NULL && startup_id[0] != '\0')
{
parsing_results->startup_id = g_strdup (startup_id);
- putenv ((char *) "DESKTOP_STARTUP_ID=");
+ g_unsetenv ("DESKTOP_STARTUP_ID");
}
gtk_window_set_auto_startup_notification (FALSE); /* we'll do it ourselves due
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]