summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 13:06:48 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 13:06:48 +0800
commitac1d174658c81a0a4c867d6945a7115f9cb961ac (patch)
tree47dab6c238098ca0e8a1bf6bc35874dad01ec8de
parent2705efd2ded0924b94f9576943e34ca60b0b3b97 (diff)
The user nullness can be tested now
m---------librtclient0
-rw-r--r--worker.cxx5
2 files changed, 1 insertions, 4 deletions
diff --git a/librtclient b/librtclient
-Subproject afcfe1bf43eab83357f88fc71ddeb9b0356fd3d
+Subproject 5fe434e35b65a42bc365404a7a6c3436a2a99a8
diff --git a/worker.cxx b/worker.cxx
index e4f796a..bdb29e0 100644
--- a/worker.cxx
+++ b/worker.cxx
@@ -9,12 +9,9 @@ Worker::Worker()
void Worker::logIn(QString const& name, QString const& password)
{
rtclient_login(name.toLatin1().constData(), password.toLatin1().constData());
- /*
struct rt_user *user = NULL;
rtclient_userget(&user, name.toLatin1().constData());
- if (user)
- rtclient_userfree(user);
- */
+ if (user) rtclient_userfree(user);
}
void Worker::search(QString const& owner)