summaryrefslogtreecommitdiff
path: root/src/Resource.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-04-16 23:50:53 +0000
committerDana Jansens <danakj@orodu.net>2002-04-16 23:50:53 +0000
commit73a3c979b39ae0b51298d16bc5e76b61d31c89d5 (patch)
treebb9fc01c03957c308b2bd2878e910fe57940f7c8 /src/Resource.cc
parentfe9b1efde5e46c00679d0435601f915099a574b0 (diff)
Slit loads its own settings and saves them as they are changed
added an assert in Resource
Diffstat (limited to 'src/Resource.cc')
-rw-r--r--src/Resource.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Resource.cc b/src/Resource.cc
index f3b0e5f9..cff9bd38 100644
--- a/src/Resource.cc
+++ b/src/Resource.cc
@@ -116,6 +116,7 @@ void Resource::setValue(const std::string &rname, long value) {
void Resource::setValue(const std::string &rname, const char *value) {
ASSERT(m_database != NULL);
+ ASSERT(value != NULL);
std::string rc_string = rname + ": " + value;
XrmPutLineResource(&m_database, rc_string.c_str());