From 5c84dba1e506386a37d30a643825e9d0717cffb9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 23 Mar 2000 23:04:53 +0000 Subject: Fixed bug when copying null font name. --- src/ViewStyle.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index d5c36981b..903ae94f4 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -34,6 +34,8 @@ void FontNames::Clear() { } const char *FontNames::Save(const char *name) { + if (!name) + return 0; for (int i=0;i