diff options
author | nyamatongwe <unknown> | 2000-03-23 23:04:53 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-03-23 23:04:53 +0000 |
commit | 0cfe7678d24a80c28336c539040615f269b4b98d (patch) | |
tree | 2c9e4a0cc94f4429046093a59bc193e58fa71144 /src/ViewStyle.cxx | |
parent | 74774065a9c1cc84304ce841bbfa56e45a362bd7 (diff) | |
download | scintilla-mirror-0cfe7678d24a80c28336c539040615f269b4b98d.tar.gz |
Fixed bug when copying null font name.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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<max;i++) { if (strcmp(names[i], name) == 0) { return names[i]; |