Fix a crash. Patch from Trond Myklebust. Closes bug #360017.
authorKjartan Maraas <kmaraas@gnome.org>
Mon, 12 Feb 2007 11:53:07 +0000 (11:53 +0000)
committerKjartan Maraas <kmaraas@src.gnome.org>
Mon, 12 Feb 2007 11:53:07 +0000 (11:53 +0000)
2007-02-12  Kjartan Maraas  <kmaraas@gnome.org>

* libedataserver/e-sexp.c: (parse_value): Fix a crash.
Patch from Trond Myklebust. Closes bug #360017.

svn path=/trunk/; revision=7620

ChangeLog
libedataserver/e-sexp.c

index 6b73484..9cbd0ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-12  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * libedataserver/e-sexp.c: (parse_value): Fix a crash.
+       Patch from Trond Myklebust. Closes bug #360017.
+
 2007-02-12  Ross Burton  <ross@openedhand.com>
 
        * configure.in:
index 24a89d7..81d0a06 100644 (file)
@@ -899,6 +899,8 @@ parse_value(ESExp *f)
        
        token = g_scanner_get_next_token(gs);
        switch(token) {
+       case G_TOKEN_EOF:
+               break;
        case G_TOKEN_LEFT_PAREN:
                p(printf("got brace, its a list!\n"));
                return parse_list(f, TRUE);