[totem-pl-parser] plparser: Fix uninitialized variable error
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparser: Fix uninitialized variable error
- Date: Thu, 22 Jul 2021 12:52:49 +0000 (UTC)
commit 87fc47f6d992b65d2baaa987bb985bc388457a9b
Author: David GUGLIELMI <david guglielmi gmail com>
Date: Sun Jul 11 22:41:42 2021 +0200
plparser: Fix uninitialized variable error
Build failed on systems using -Os cflags with:
- totem-pl-parser.c:1776:14: error: ‘ret’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
plparse/totem-pl-parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 404deb3..32fd435 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1760,7 +1760,7 @@ totem_pl_parser_glob_is_ignored (TotemPlParser *parser,
{
GHashTableIter iter;
gpointer key;
- int ret;
+ int ret = FNM_NOMATCH;
g_mutex_lock (&parser->priv->ignore_mutex);
g_hash_table_iter_init (&iter, parser->priv->ignore_globs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]