mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
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:
parent
c2ff12ced5
commit
6406217f50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user