]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Avoid spurious warning
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Aug 2021 17:37:43 +0000 (19:37 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Aug 2021 17:38:45 +0000 (19:38 +0200)
Compilers missing some flow analysis may think ss may be used
uninitialized.

hurd/hurdselect.c

index 9790d54864121084f0b9b3c0edce8a8784d3a31f..cab23fdd82abd8eb540a5db046d1b3123dcfb027 100644 (file)
@@ -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.  */
     {