vte r2189 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2189 - in trunk: . src
- Date: Mon, 24 Nov 2008 18:56:44 +0000 (UTC)
Author: behdad
Date: Mon Nov 24 18:56:44 2008
New Revision: 2189
URL: http://svn.gnome.org/viewvc/vte?rev=2189&view=rev
Log:
2008-11-24 Behdad Esfahbod <behdad gnome org>
Bug 514457 â Use g_strv_length()
* src/vte.c (_vte_terminal_fork_basic): Do it.
Modified:
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c (original)
+++ trunk/src/vte.c Mon Nov 24 18:56:44 2008
@@ -3288,9 +3288,7 @@
g_object_freeze_notify(object);
/* Duplicate the environment, and add one more variable. */
- for (i = 0; (envv != NULL) && (envv[i] != NULL); i++) {
- /* nothing */ ;
- }
+ i = envv ? g_strv_length(envv) : 0;
env_add = g_new(char *, i + 2);
env_add[0] = g_strdup_printf("TERM=%s", terminal->pvt->emulation);
for (i = 0; (envv != NULL) && (envv[i] != NULL); i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]