From e7844f9c20776b5417d22ba9f119546dad526982 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi <cosimoc@src.gnome.org> Date: Tue, 6 Nov 2007 21:20:11 +0000 Subject: Adds a NULL check to avoid passing illegal values to strtol in ephy-session. Patch by Ed Catmur. Fix bug #493148. svn path=/trunk/; revision=7644 --- src/ephy-session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ephy-session.c b/src/ephy-session.c index 537df50ea..811cd1e6d 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -1367,6 +1367,8 @@ int_from_string (const char *string, long int val; gboolean success = FALSE; + if (string == NULL) return FALSE; + errno = 0; val = strtol (string, &tail, 0); -- cgit v1.2.3