[poppler] Branch 'poppler-0.16' - glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Jan 29 04:45:18 PST 2011


 glib/demo/text.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 8e4b254fca1728cde1ca6bc5f25ef1346f1c47c2
Author: Jim Meyering <meyering at redhat.com>
Date:   Mon Jan 24 15:51:20 2011 +0100

    demo: don't use an uninitialized local variable
    
    * text.c (pgd_text_get_text): Before this change, when
    poppler_page_get_text returned NULL, we'd use "n_recs" uninitialized.

diff --git a/glib/demo/text.c b/glib/demo/text.c
index 28e90ae..abaa3c1 100644
--- a/glib/demo/text.c
+++ b/glib/demo/text.c
@@ -101,6 +101,7 @@ pgd_text_get_text (GtkWidget   *button,
 		g_free (str);
 	} else {
 		gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No text found</i>");
+		n_recs = 0;
 	}
 
 	g_timer_destroy (timer);


More information about the poppler mailing list