diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 13:06:48 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 13:06:48 +0800 |
commit | ac1d174658c81a0a4c867d6945a7115f9cb961ac (patch) | |
tree | 47dab6c238098ca0e8a1bf6bc35874dad01ec8de | |
parent | 2705efd2ded0924b94f9576943e34ca60b0b3b97 (diff) |
The user nullness can be tested now
m--------- | librtclient | 0 | ||||
-rw-r--r-- | worker.cxx | 5 |
2 files changed, 1 insertions, 4 deletions
diff --git a/librtclient b/librtclient -Subproject afcfe1bf43eab83357f88fc71ddeb9b0356fd3d +Subproject 5fe434e35b65a42bc365404a7a6c3436a2a99a8 @@ -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) |