[gdm/gnome-2-30] Fix for bug #636662. Do not print out garbage for version.



commit 752b74c84b2dadbe7a22a30d9128245babb467c9
Author: Brian Cameron <brian cameron oracle com>
Date:   Thu Apr 7 12:00:30 2011 -0500

    Fix for bug #636662.
    Do not print out garbage for version.

 gui/simple-greeter/gdm-greeter-login-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index ed3168b..3f7d53e 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -1027,6 +1027,7 @@ file_read_one_line (const char *filename)
 
         if (fgets (buf, sizeof (buf), f) == NULL) {
                 g_warning ("Unable to read from file %s", filename);
+                goto out;
         }
 
         line = g_strdup (buf);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]