summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-03-17 15:26:13 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-03-17 15:26:13 +0000
commit80cd793f75ed7b13b3960978f1a6019b42deeeac (patch)
treed61446b2e89e5cb12180e3fdade2b1a66be214f5 /src/session.c
parent42936562de54e5d24b44c94b1f8d7c812e52bebf (diff)
downloadmetacity-80cd793f75ed7b13b3960978f1a6019b42deeeac.tar.gz
metacity-80cd793f75ed7b13b3960978f1a6019b42deeeac.tar.bz2
use proper property name for SmDiscardCommand (instead of setting the
2002-03-17 Havoc Pennington <hp@pobox.com> * src/session.c (set_clone_restart_commands): use proper property name for SmDiscardCommand (instead of setting the clone command to "rm"). Also fix typo that iterated over clonev not discardv to fill in prop list, and NULL-terminate discardv. #74584 from Kang Jeong-Hee.
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/session.c b/src/session.c
index e41c9a6..748cdbf 100644
--- a/src/session.c
+++ b/src/session.c
@@ -532,13 +532,15 @@ set_clone_restart_commands (void)
discardv[i] = "-f";
++i;
discardv[i] = (char*) full_save_file ();
-
- prop3.name = SmCloneCommand;
+ ++i;
+ discardv[i] = NULL;
+
+ prop3.name = SmDiscardCommand;
prop3.type = SmLISTofARRAY8;
prop3.vals = g_new (SmPropValue, i);
i = 0;
- while (clonev[i])
+ while (discardv[i])
{
prop3.vals[i].value = discardv[i];
prop3.vals[i].length = strlen (discardv[i]);