config: Be more verbose about consequence of ExtraScript OOM condition 47/225547/2
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 20 Feb 2020 18:26:59 +0000 (19:26 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 21 Feb 2020 11:48:08 +0000 (12:48 +0100)
Change-Id: I7add0d5df5fc2a0369c011574eff7a1eccd8343f

src/shared/config.c

index b7f32a5..be14826 100644 (file)
@@ -77,7 +77,8 @@ static bool config_load_from_dict(config_t *c, const dictionary *ini)
                if (extra_script) {
                        free(c->extra_script);
                        c->extra_script = extra_script;
-               }
+               } else
+                       _W("Out of memory. ExtraScript will not be executed.");
        }
 
        str = iniparser_getstring(ini, CRASH_SECTION ":ReportType", NULL);