forked from len0rd/rockbox
output_dyn_value() : don't use strlen() to check string emptiness
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27933 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0011cb5911
commit
bf82ac06bf
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ char *output_dyn_value(char *buf, int buf_size, int value,
|
|||
|
||||
if (buf)
|
||||
{
|
||||
if (strlen(tbuf))
|
||||
if (*tbuf)
|
||||
snprintf(buf, buf_size, "%d%s%s%s", value, str(LANG_POINT),
|
||||
tbuf, P2STR(units[unit_no]));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue