summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2017-03-02 13:55:30 -0500
committerJonathan Lebon <jlebon@redhat.com>2017-03-02 13:57:03 -0500
commit5309e363aa30d2108a264ae35d8d870ee3e0c443 (patch)
tree787004dafc04a9031fedbb0177fa4d396b8d6e1e
parent0c1603debac440978c1d55c46cb11059f8350b35 (diff)
downloadlibglnx-5309e363aa30d2108a264ae35d8d870ee3e0c443.tar.gz
fix bug found by -Wmaybe-uninitialized
-rw-r--r--tests/test-libglnx-xattrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-libglnx-xattrs.c b/tests/test-libglnx-xattrs.c
index 21bdbdb..0b21133 100644
--- a/tests/test-libglnx-xattrs.c
+++ b/tests/test-libglnx-xattrs.c
@@ -192,7 +192,7 @@ xattr_thread (gpointer data)
GError **error = &local_error;
struct XattrWorker *worker = data;
guint64 end_time = g_get_monotonic_time () + XATTR_THREAD_RUN_TIME_USECS;
- guint n_read;
+ guint n_read = 0;
while (g_get_monotonic_time () < end_time)
{