VirtualBox

Changeset 55576 in vbox


Ignore:
Timestamp:
May 1, 2015 1:00:55 AM (9 years ago)
Author:
vboxsync
Message:

Check for empty string the fast C way and drop the confused RT_BOOL use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r50063 r55576  
    18241824        /* Is this an anonymous session? */
    18251825        /* Anonymous sessions run with the same privileges as the main VBoxService executable. */
    1826         bool fAnonymous = !RT_BOOL(strlen(pSessionThread->StartupInfo.szUser));
     1826        bool const fAnonymous = pSessionThread->StartupInfo.szUser[0] == '\0';
    18271827        if (fAnonymous)
    18281828        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette