[vte/vte-next] Correct error message
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vte/vte-next] Correct error message
- Date: Sat, 28 May 2011 22:07:45 +0000 (UTC)
commit f78cbe911317cbeba81562845eaf16524f7c164c
Author: Christian Persch <chpe gnome org>
Date:   Sat May 28 21:53:41 2011 +0200
    Correct error message
 src/vteapp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 1a96b15..c1e05e0 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -1138,11 +1138,11 @@ main(int argc, char **argv)
 			pid = fork();
 			switch (pid) {
 			case -1:
-                                g_object_unref(pty);
 				/* abnormal */
-				g_warning("Error in vte_terminal_forkpty(): %s",
+				g_warning("Error forking: %s",
 					  g_strerror(errno));
-				break;
+                                g_object_unref(pty);
+                                break;
 			case 0:
 				/* child */
                                 vte_pty_child_setup(pty);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]