From ac1d174658c81a0a4c867d6945a7115f9cb961ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 13:06:48 +0800 Subject: The user nullness can be tested now --- librtclient | 2 +- worker.cxx | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/librtclient b/librtclient index afcfe1b..5fe434e 160000 --- a/librtclient +++ b/librtclient @@ -1 +1 @@ -Subproject commit afcfe1bf43eab83357f88fc71ddeb9b0356fd3d0 +Subproject commit 5fe434e35b65a42bc365404a7a6c3436a2a99a8b 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) -- cgit v1.2.3