VirtualBox

Changeset 44882 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 1, 2013 10:15:18 AM (12 years ago)
Author:
vboxsync
Message:

GA: Linux Shared Folders: update coding style, fix compilation warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r44879 r44882  
    109109#define _IS_UTF8(_str) \
    110110    (strcmp(_str, "utf8") == 0)
     111#define _IS_EMPTY(_str) \
     112    (strcmp(_str, "") == 0)
     113
    111114    /* Check if NLS charset is valid and not points to UTF8 table */
    112115    if (info->nls_name[0])
     
    130133        /* If no NLS charset specified, try to load the default
    131134         * one if it's not points to UTF8. */
    132         if (!_IS_UTF8(CONFIG_NLS_DEFAULT) && CONFIG_NLS_DEFAULT != "")
     135        if (!_IS_UTF8(CONFIG_NLS_DEFAULT) && !_IS_EMPTY(CONFIG_NLS_DEFAULT))
    133136            sf_g->nls = load_nls_default();
    134137        else
    135 #endif
    136138            sf_g->nls = NULL;
    137 
    138     }
     139#else
     140        sf_g->nls = NULL;
     141#endif
     142
    139143#undef _IS_UTF8
     144#undef _IS_EMPTY
     145    }
    140146
    141147    rc = vboxCallMapFolder(&client_handle, str_name, &sf_g->map);
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