[poppler] glib/demo
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Jan 29 04:44:35 PST 2011
glib/demo/text.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c60d5afbeb986c1b335357202c5f551a3c146a76
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 0355ad9..54d140b 100644
--- a/glib/demo/text.c
+++ b/glib/demo/text.c
@@ -102,6 +102,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