diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-06-18 21:10:11 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-06-18 21:10:11 +0000 |
| commit | e1bca7c98571e8888f4d49543b42218c24b7a2ae (patch) | |
| tree | 234bc6c85662746b7a96db84228f8088c510577f /lib | |
| parent | ae3bc8673d79edecb8fcb918d83db011535b0955 (diff) | |
| download | enigma2-e1bca7c98571e8888f4d49543b42218c24b7a2ae.tar.gz enigma2-e1bca7c98571e8888f4d49543b42218c24b7a2ae.zip | |
fix empty strings
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gdi/font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index f7c1bca5..77c8de94 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -470,9 +470,9 @@ int eTextPara::renderString(const char *string, int rflags) if (string) uc_string.reserve(strlen(string)); - const char *p = string; + const char *p = string ? string : ""; - while(p) + while (*p) { unsigned int unicode=(unsigned char)*p++; |
