summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index 8d42b7d59..e43a34762 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -381,9 +381,9 @@ static char * sp_text_description(SPItem *item)
font_instance *tf = font_factory::Default()->FaceFromStyle(style);
- char name_buf[256];
char *n;
if (tf) {
+ char name_buf[256];
tf->Family(name_buf, sizeof(name_buf));
n = xml_quote_strdup(name_buf);
tf->Unref();