diff options
author | rathnor <rathnor> | 2003-07-19 14:07:28 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-19 14:07:28 (GMT) |
commit | 1591c15b8b11dfe343d48841375d4de825927f5a (patch) | |
tree | 98b73703ca7355009eb0d9eef8b0240584c954d4 /src/FbTk | |
parent | 9c3b06945a4079f1cbd83441a0a68fc6694b6be5 (diff) | |
download | fluxbox_paul-1591c15b8b11dfe343d48841375d4de825927f5a.zip fluxbox_paul-1591c15b8b11dfe343d48841375d4de825927f5a.tar.bz2 |
make sure we pass null (rather than blank) to XOpenDisplay
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/App.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/App.cc b/src/FbTk/App.cc index 3daf61a..18c6e56 100644 --- a/src/FbTk/App.cc +++ b/src/FbTk/App.cc | |||
@@ -40,6 +40,10 @@ App::App(const char *displayname):m_done(false) { | |||
40 | if (s_app != 0) | 40 | if (s_app != 0) |
41 | throw std::string("Can't create more than one instance of FbTk::App"); | 41 | throw std::string("Can't create more than one instance of FbTk::App"); |
42 | s_app = this; | 42 | s_app = this; |
43 | // this allows the use of std::string.c_str(), which returns | ||
44 | // a blank string, rather than a null string, so we make them equivalent | ||
45 | if (displayname != 0 && displayname[0] == '\0') | ||
46 | displayname = 0; | ||
43 | m_display = XOpenDisplay(displayname); | 47 | m_display = XOpenDisplay(displayname); |
44 | } | 48 | } |
45 | 49 | ||