Merge pull request #45758 from madmiraal/fix-used-uninitialized-warning

[3.2] Fix used uninitialized warning in os_x11.cpp
This commit is contained in:
Rémi Verschelde 2021-02-06 13:33:59 +01:00 committed by GitHub
commit 9fb27eba8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2172,10 +2172,10 @@ struct Property {
static Property read_property(Display *p_display, Window p_window, Atom p_property) {
Atom actual_type;
int actual_format;
unsigned long nitems;
unsigned long bytes_after;
Atom actual_type = None;
int actual_format = 0;
unsigned long nitems = 0;
unsigned long bytes_after = 0;
unsigned char *ret = 0;
int read_bytes = 1024;