about summary refs log tree commit diff
path: root/hurd/hurdselect.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-03 19:37:43 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-03 19:38:45 +0200
commitdf183287ff7ded9471205abfa59df27e5e5401da (patch)
treedd961f448b2fe3e261a1b8b13f785299462e58cf /hurd/hurdselect.c
parent77a34079d8f3d63b61543bf3af93043f8674e4c4 (diff)
downloadglibc-df183287ff7ded9471205abfa59df27e5e5401da.tar.gz
glibc-df183287ff7ded9471205abfa59df27e5e5401da.tar.xz
glibc-df183287ff7ded9471205abfa59df27e5e5401da.zip
hurd: Avoid spurious warning
Compilers missing some flow analysis may think ss may be used
uninitialized.
Diffstat (limited to 'hurd/hurdselect.c')
-rw-r--r--hurd/hurdselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
index 9790d54864..cab23fdd82 100644
--- a/hurd/hurdselect.c
+++ b/hurd/hurdselect.c
@@ -67,7 +67,7 @@ _hurd_select (int nfds,
       int error;
     } d[nfds];
   sigset_t oset;
-  struct hurd_sigstate *ss;
+  struct hurd_sigstate *ss = NULL;
 
   union typeword		/* Use this to avoid unkosher casts.  */
     {