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 --- worker.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'worker.cxx') 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