mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Avoid crash from trying to free an unallocated char*.
This commit is contained in:
parent
97f0653238
commit
0c3e85404d
@ -180,7 +180,7 @@ m_version{}, m_sources{}, m_api_key{}
|
||||
if (!(av_key && *av_key))
|
||||
{
|
||||
g_free (av_key);
|
||||
av_key = getenv("ALPHAVANTAGE_API_KEY");
|
||||
av_key = g_strdup(getenv("ALPHAVANTAGE_API_KEY"));
|
||||
}
|
||||
|
||||
if (av_key)
|
||||
|
Loading…
Reference in New Issue
Block a user