From: Uwe Hermann Date: Wed, 16 May 2018 20:17:07 +0000 (+0200) Subject: srd_decoder_load_all_zip_path(): Fix a compiler warning (-Wshadow). X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=1d757906a2f8c881fcbbd1915420aa80a9d5da36 srd_decoder_load_all_zip_path(): Fix a compiler warning (-Wshadow). --- diff --git a/decoder.c b/decoder.c index bebe96c..87df2ad 100644 --- a/decoder.c +++ b/decoder.c @@ -937,7 +937,7 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec) return SRD_OK; } -static void srd_decoder_load_all_zip_path(char *path) +static void srd_decoder_load_all_zip_path(char *zip_path) { PyObject *zipimport_mod, *zipimporter_class, *zipimporter; PyObject *prefix_obj, *files, *key, *value, *set, *modname; @@ -958,7 +958,7 @@ static void srd_decoder_load_all_zip_path(char *path) if (zipimporter_class == NULL) goto err_out; - zipimporter = PyObject_CallFunction(zipimporter_class, "s", path); + zipimporter = PyObject_CallFunction(zipimporter_class, "s", zip_path); if (zipimporter == NULL) goto err_out;