shithub: aubio

Download patch

ref: 8fe522da2c84630f38c1c52ff85b208e5b0addf8
parent: 4cb2d5418ce1306edbb3f0f81932a6cdec728ca0
author: Paul Brossier <piem@piem.org>
date: Sat Dec 22 19:01:43 EST 2018

[strutils] no declaration after statement

--- 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;
 }