summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13b2057)
raw | patch | inline | side by side (parent: 13b2057)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 24 Jul 2008 06:56:53 +0000 (06:56 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 24 Jul 2008 06:56:53 +0000 (06:56 +0000) |
src/style.cpp | patch | blob | history |
diff --git a/src/style.cpp b/src/style.cpp
index 766f5a7fbe7b021b94c136417492641b5f212209..1d4384c4ca7ef869eecd5b962a177cdbdbf7c4e7 100644 (file)
--- a/src/style.cpp
+++ b/src/style.cpp
return g_snprintf(p, len, "%s:inherit;", key);
} else {
gchar *val_quoted = css2_escape_quote(val->value);
- return g_snprintf(p, len, "%s:%s;", key, val_quoted);
- g_free (val_quoted);
+ if (val_quoted) {
+ return g_snprintf(p, len, "%s:%s;", key, val_quoted);
+ g_free (val_quoted);
+ }
}
}
return 0;