summaryrefslogtreecommitdiff
path: root/tests/test-shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-shape.c')
-rw-r--r--tests/test-shape.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c
index 152acd26..c43e5a06 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -137,7 +137,7 @@ test_file (const gchar *filename, GString *string)
PangoAttrList *shape_attrs;
GList *items, *l;
GString *s1, *s2, *s3, *s4, *s5, *s6, *s7;
- char *p, *p1;
+ char *p1;
const char *sep = "";
if (!g_file_get_contents (filename, &contents, &length, &error))
@@ -153,11 +153,6 @@ test_file (const gchar *filename, GString *string)
while (test[0] == '#')
test = strchr (test, '\n') + 1;
- p = strchr (test, '\n');
- *p = '\0';
-
- test = p + 1;
-
if (!pango_parse_markup (test, -1, 0, &attrs, &text, NULL, &error))
{
fprintf (stderr, "%s\n", error->message);