[lasem] svg_view: prevent a crash in case of NULL points string.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] svg_view: prevent a crash in case of NULL points string.
- Date: Thu, 19 Aug 2010 16:52:59 +0000 (UTC)
commit 7832d00387fa18f7d42231e6cbe06ff91a160ef9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Aug 17 13:54:11 2010 +0200
svg_view: prevent a crash in case of NULL points string.
src/lsmsvgview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index b197997..6371dce 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1289,6 +1289,9 @@ _show_points (LsmSvgView *view, const char *points, gboolean close_path)
char *str;
double values[2];
+ if (points == NULL)
+ return;
+
g_return_if_fail (LSM_IS_SVG_VIEW (view));
str = (char *) points;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]