diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:11:59 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:11:59 +0000 |
commit | bf82ac06bfd9b40dadcca3b16da24a75eabe8e6f (patch) | |
tree | 1fe6584488d02e6636482eb8de6e4fb3c563a3a0 | |
parent | 0011cb59111219af6b0c90538e669ffe328c5d5e (diff) | |
download | rockbox-bf82ac06bfd9b40dadcca3b16da24a75eabe8e6f.tar.gz rockbox-bf82ac06bfd9b40dadcca3b16da24a75eabe8e6f.zip |
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
-rw-r--r-- | apps/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index 0ab26b0831..c35e2c5001 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -125,7 +125,7 @@ char *output_dyn_value(char *buf, int buf_size, int value, | |||
125 | 125 | ||
126 | if (buf) | 126 | if (buf) |
127 | { | 127 | { |
128 | if (strlen(tbuf)) | 128 | if (*tbuf) |
129 | snprintf(buf, buf_size, "%d%s%s%s", value, str(LANG_POINT), | 129 | snprintf(buf, buf_size, "%d%s%s%s", value, str(LANG_POINT), |
130 | tbuf, P2STR(units[unit_no])); | 130 | tbuf, P2STR(units[unit_no])); |
131 | else | 131 | else |