mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
Merge branch 'ebassi/gcc-12-fixes' into 'main'
Fix array-bounds compiler warnings with GCC 12 See merge request GNOME/glib!2873
This commit is contained in:
@@ -710,7 +710,7 @@ merge_directory_results (void)
|
||||
static_total_results = g_renew (struct search_result, static_total_results, static_total_results_allocated);
|
||||
}
|
||||
|
||||
if (static_total_results + static_total_results_size != 0)
|
||||
if (static_search_results_size != 0)
|
||||
memcpy (static_total_results + static_total_results_size,
|
||||
static_search_results,
|
||||
static_search_results_size * sizeof (struct search_result));
|
||||
|
Reference in New Issue
Block a user