summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortagoh <tagoh>2006-05-25 07:41:09 +0000
committertagoh <tagoh>2006-05-25 07:41:09 +0000
commite891e6fa98eeff0740e1d4e4134ff79d57fdd4af (patch)
tree4692180cd59dd6816b261b7355d91f0c7a187c4e /src
parent98ed8bd3cc4638680b78ca41ab63acab2e802ad6 (diff)
downloadpaps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.tar.gz
paps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.tar.xz
paps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.zip
* src/paps.c (split_text_into_paragraphs): fixed a possible segfault
issue.
Diffstat (limited to 'src')
-rw-r--r--src/paps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paps.c b/src/paps.c
index c4e64ef..d8e728f 100644
--- a/src/paps.c
+++ b/src/paps.c
@@ -418,7 +418,7 @@ split_text_into_paragraphs (PangoContext *pango_context,
GList *result = NULL;
char *last_para = text;
- while (*p)
+ while (p != NULL && *p)
{
wc = g_utf8_get_char (p);
next = g_utf8_next_char (p);