shithub: sox

Download patch

ref: 61b964bbaaa3cac0037aeb7818f8c322489f15cb
parent: f06e6548b588f7af272479600ed519ba3f4da155
author: Mans Rullgard <mans@mansr.com>
date: Sat Sep 5 19:07:12 EDT 2015

Fix return annotation of lsx_find_file_extension()

This function may return null.

--- a/src/sox.h
+++ b/src/sox.h
@@ -2450,7 +2450,7 @@
 @returns the file extension, not including the '.', or null if filename does
 not have an extension.
 */
-LSX_RETURN_VALID_Z LSX_RETURN_PURE
+LSX_RETURN_OPT LSX_RETURN_PURE
 char const *
 LSX_API
 lsx_find_file_extension(