use BLI_strnlen rather then strlen when comparing against fixed lengths.
[blender.git] / source / blender / editors / interface / interface_icons.c
index 8533e5ba893a389331d566b8b0dfd1f2e46e8028..cf1a90137af9f9679760eb646bb5d6baa2654b06 100644 (file)
@@ -507,7 +507,7 @@ static void init_internal_icons(void)
        int x, y, icontype;
        char iconfilestr[FILE_MAXDIR+FILE_MAXFILE];
        
-       if ((btheme!=NULL) && (strlen(btheme->tui.iconfile) > 0)) {
+       if ((btheme!=NULL) && btheme->tui.iconfile[0]) {
                char *datadir= BLI_get_folder(BLENDER_DATAFILES, NULL);
                if (datadir) {
                        BLI_make_file_string("/", iconfilestr, datadir, btheme->tui.iconfile);