aboutsummaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
Diffstat (limited to 'deps')
-rw-r--r--deps/sysobj_early/src/util_edid.c11
-rw-r--r--deps/sysobj_early/src/util_ids.c4
2 files changed, 10 insertions, 5 deletions
diff --git a/deps/sysobj_early/src/util_edid.c b/deps/sysobj_early/src/util_edid.c
index 4b2c515d..06c5534e 100644
--- a/deps/sysobj_early/src/util_edid.c
+++ b/deps/sysobj_early/src/util_edid.c
@@ -323,8 +323,10 @@ static void did_block_decode(DisplayIDBlock *blk) {
uint32_t a = blk->addy.offset; /* start of block, includes header */
uint8_t *u8 = DPTR(blk->addy);
int b = h;
- edid_ven ven = {};
- edid_output out = {};
+ edid_ven ven;// = {};
+ edid_output out;// = {};
+ memset(&ven,0,sizeof(edid_ven));
+ memset(&out,0,sizeof(edid_output));
if (blk) {
switch(blk->type) {
case 0: /* Product ID (1.x) */
@@ -443,7 +445,8 @@ static edid_output edid_output_from_svd(uint8_t index) {
if (index >= 128 && index <= 192) index &= 0x7f; /* "native" flag for 0-64 */
for(i = 0; i < (int)G_N_ELEMENTS(cea_standard_timings); i++) {
if (cea_standard_timings[i].index == index) {
- edid_output out = {};
+ edid_output out;// = {};
+ memset(&out,0,sizeof(edid_output));
out.horiz_pixels = cea_standard_timings[i].horiz_active;
out.vert_lines = cea_standard_timings[i].vert_active;
if (strchr(cea_standard_timings[i].short_name, 'i'))
@@ -1153,7 +1156,7 @@ char *edid_cea_audio_describe(struct edid_sad *sad) {
sad->format, _(edid_cea_audio_type(sad->format)) );
gchar *ret = NULL;
- gchar *tmp[3] = {};
+ gchar *tmp[3] = {NULL,NULL,NULL};
#define appfreq(b, f) if (sad->freq_bits & (1 << b)) tmp[0] = appf(tmp[0], ", ", "%d", f);
#define appdepth(b, d) if (sad->depth_bits & (1 << b)) tmp[1] = appf(tmp[1], ", ", "%d%s", d, _("-bit"));
appfreq(0, 32);
diff --git a/deps/sysobj_early/src/util_ids.c b/deps/sysobj_early/src/util_ids.c
index b24dba59..197b1ed3 100644
--- a/deps/sysobj_early/src/util_ids.c
+++ b/deps/sysobj_early/src/util_ids.c
@@ -91,7 +91,7 @@ static void ids_query_result_set_str(ids_query_result *ret, int tabs, gchar *p)
long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *result, long start_offset) {
gchar **qparts = NULL;
gchar buff[IDS_LOOKUP_BUFF_SIZE] = "";
- ids_query_result ret = {};
+ ids_query_result ret;// = {};
gchar *p = NULL;
FILE *fd;
@@ -100,6 +100,8 @@ long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *resu
int qpartlen[IDS_LOOKUP_MAX_DEPTH];
long last_root_fpos = -1, fpos, line = -1;
+ memset(&ret,0,sizeof(ids_query_result));
+
if (!qpath)
return -1;