diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-10-18 10:46:14 +0300 |
---|---|---|
committer | Yaniv Kaul <ykaul@redhat.com> | 2019-10-18 10:48:49 +0300 |
commit | d923d3a67d2b306114dec993da7ee9c59d7d5482 (patch) | |
tree | 29b08ef159e1cdfc9f091b3ed04bbfcb3842168f /xlators/storage/posix/src/posix-gfid-path.c | |
parent | 105c7c5e7deaf9be29b81dc51f58dd5e5f8bd071 (diff) |
posix-helper.c: fix compile warn: ‘timeout’ may be used uninitialized
https://review.gluster.org/#/c/glusterfs/+/23439/ introduced this warning:
In file included from posix-helpers.c:50:
posix-helpers.c: In function ‘posix_health_check_thread_proc’:
../../../../libglusterfs/src/glusterfs/events.h:31:9: warning: ‘timeout’ may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | _gf_event(event, ##fmt); \
| ^~~~~~~~~
posix-helpers.c:2024:9: note: ‘timeout’ was declared here
2024 | int timeout;
This patch fixes it, by re-setting the initial value to 0.
Change-Id: I90aee4a1366e21a00f5e138f44247d8c42b0f5ae
updates: bz#789278
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-gfid-path.c')
0 files changed, 0 insertions, 0 deletions