summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 12:48:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 12:48:39 +0800
commit2e1dddbaa950db18e9d37be31879c969b49370cf (patch)
tree29c2a03cf5aaf7ae8ab01d053517fb727d224b15
parentc96cf752bdf51ab412544f8c366209f261416d8c (diff)
Fix usage
-rw-r--r--worker.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/worker.cxx b/worker.cxx
index d411456..c47ea2b 100644
--- a/worker.cxx
+++ b/worker.cxx
@@ -9,8 +9,10 @@ Worker::Worker()
void Worker::logIn(QString const& name, QString const& password)
{
rtclient_login(name.toLatin1().constData(), password.toLatin1().constData());
- auto user = rtclient_userget(name.toLatin1().constData());
- rtclient_userfree(user);
+ struct rt_user *user = NULL;
+ rtclient_userget(&user, name.toLatin1().constData());
+ if (user)
+ rtclient_userfree(user);
}
void Worker::search(QString const& owner)