From d51c37d151d2e080aec01158d77eaadd0b213e13 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Sat, 13 Jan 2007 07:28:41 +0000 Subject: fixes for style-test prefs crashes (bzr r2202) --- src/style-test.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/style-test.cpp') diff --git a/src/style-test.cpp b/src/style-test.cpp index 54be0040e..5c123704b 100644 --- a/src/style-test.cpp +++ b/src/style-test.cpp @@ -619,6 +619,7 @@ test_style() utest_start("style"); UTEST_TEST("sp_style_new, sp_style_write_string") { SPStyle *style = sp_style_new(); + g_assert(style); gchar *str0_all = sp_style_write_string(style, SP_STYLE_FLAG_ALWAYS); gchar *str0_set = sp_style_write_string(style, SP_STYLE_FLAG_IFSET); UTEST_ASSERT(*str0_set == '\0'); -- cgit v1.2.3