projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb2d54
)
[strutils] no declaration after statement
author
Paul Brossier
<piem@piem.org>
Sat, 22 Dec 2018 23:01:43 +0000
(
00:01
+0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 22 Dec 2018 23:01:43 +0000
(
00:01
+0100)
src/utils/strutils.c
patch
|
blob
|
history
diff --git
a/src/utils/strutils.c
b/src/utils/strutils.c
index
4f61b64
..
f00f403
100644
(file)
--- a/
src/utils/strutils.c
+++ b/
src/utils/strutils.c
@@
-22,9
+22,10
@@
const char_t *aubio_str_get_extension(const char_t *filename)
{
- if (!filename) return NULL;
// find last occurence of dot character
- const char_t *ext = strrchr(filename, '.');
+ const char_t *ext;
+ if (!filename) return NULL;
+ ext = strrchr(filename, '.');
if (!ext || ext == filename) return "";
else return ext + 1;
}