diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-06-10 16:36:46 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-06-11 09:42:44 +0200 |
commit | cef285311fda1cadbdcadeeb3259a6ae032dd652 (patch) | |
tree | 7cef1c61426bb6ebaddeb319b97cf861d6ff4afe /common/rfb/CSecurityVeNCrypt.cxx | |
parent | 9c407d2a0bc11697ae8413a8e6bea21813fd6072 (diff) | |
download | tigervnc-cef285311fda1cadbdcadeeb3259a6ae032dd652.tar.gz tigervnc-cef285311fda1cadbdcadeeb3259a6ae032dd652.zip |
Remove unneeded NULL checks
It's perfectly safe to delete NULL pointers, so simplify things by
removing these checks.
Diffstat (limited to 'common/rfb/CSecurityVeNCrypt.cxx')
-rw-r--r-- | common/rfb/CSecurityVeNCrypt.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 98dad494..a6b270e1 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -55,8 +55,7 @@ CSecurityVeNCrypt::CSecurityVeNCrypt(CConnection* cc, SecurityClient* sec) CSecurityVeNCrypt::~CSecurityVeNCrypt() { - if (availableTypes) - delete[] availableTypes; + delete[] availableTypes; } bool CSecurityVeNCrypt::processMsg() |