[gnome-commander] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup
- Date: Thu, 16 Dec 2010 23:02:01 +0000 (UTC)
commit 2a2eadccd822e6999bb4a1ca0d5ac7a5420dfaeb
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Dec 16 23:39:45 2010 +0100
noop: code cleanup
src/gnome-cmd-user-actions.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 61b9589..a17b443 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1182,10 +1182,9 @@ void command_open_terminal (GtkMenuItem *menuitem, gpointer not_used)
void command_open_terminal_as_root (GtkMenuItem *menuitem, gpointer not_used)
{
int argc = 1;
- char **argv = g_new (char *, argc+1);
+ char **argv = g_new0 (char *, argc+1);
argv[0] = gnome_util_user_shell ();
- argv[1] = NULL;
gnome_prepend_terminal_to_vector (&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]