summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/crsshair.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2012-07-27 15:37:39 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2012-07-27 15:37:39 +0000
commit97dbb9484f6c88379bd0892a02e17023f86d9800 (patch)
treec03d5971ad8f7dcd35785cf02107311e13d3f07e /src/emu/crsshair.c
parentb401946faeee0c3503a467e57d0bc51b06eec6f2 (diff)
removed unnecessary strlen() usage (no whatsnew)
Diffstat (limited to 'src/emu/crsshair.c')
-rw-r--r--src/emu/crsshair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/crsshair.c b/src/emu/crsshair.c
index cd4a86d427b..8a546656f28 100644
--- a/src/emu/crsshair.c
+++ b/src/emu/crsshair.c
@@ -507,7 +507,7 @@ static void crosshair_save(running_machine &machine, int config_type, xml_data_n
}
/* the default graphic name is "", so only save if not */
- if (strlen(global.name[player]) > 0)
+ if (*(global.name[player]) != 0)
{
xml_set_attribute(crosshairnode, "pic", global.name[player]);
changed = TRUE;