[poppler] test/gtk-cairo-test.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Jun 6 07:10:01 PDT 2009
test/gtk-cairo-test.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 50cf7cffff760e41774957ad8f1f92803142438e
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sat Jun 6 16:04:54 2009 +0200
Use g_path_get_basename instead of g_basename in gtk-cairo-test
Fixes bug #21361.
diff --git a/test/gtk-cairo-test.cc b/test/gtk-cairo-test.cc
index 913f46d..8c40568 100644
--- a/test/gtk-cairo-test.cc
+++ b/test/gtk-cairo-test.cc
@@ -165,7 +165,9 @@ main (int argc, char *argv [])
if (argc == 1)
{
- fprintf (stderr, "usage: %s PDF-FILES...\n", g_basename (argv[0]));
+ char *basename = g_path_get_basename (argv[0]);
+ fprintf (stderr, "usage: %s PDF-FILES...\n", basename);
+ g_free (basename);
return -1;
}
More information about the poppler
mailing list