gsequence: Fix variable maybe uninitialized warning

../glib/gsequence.c: In function 'g_sequence_move_range':
../glib/gsequence.c:640:24: warning:
 'dest_seq' may be used uninitialized in this function [-Wmaybe-uninitialized]
  640 |   if (dest && dest_seq == src_seq &&
      |               ~~~~~~~~~^~~~~~~~~~
This commit is contained in:
Pablo Correa Gómez 2022-01-18 16:56:36 +01:00
parent c2ff12ced5
commit 6406217f50
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -608,7 +608,7 @@ g_sequence_move_range (GSequenceIter *dest,
GSequenceIter *begin,
GSequenceIter *end)
{
GSequence *src_seq, *end_seq, *dest_seq;
GSequence *src_seq, *end_seq, *dest_seq = NULL;
GSequenceNode *first;
g_return_if_fail (begin != NULL);