Skip to content

Commit

Permalink
Ensure proxy is not NULL before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
csete committed Jan 20, 2018
1 parent 2641ac9 commit 00d62b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tle-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void tle_update_from_network(gboolean silent,
proxy = sat_cfg_get_str(SAT_CFG_STR_TLE_PROXY);

/* avoid empty proxy string (bug in <2.2) */
if (strlen(proxy) == 0)
if (proxy != NULL && strlen(proxy) == 0)
{
sat_cfg_reset_str(SAT_CFG_STR_TLE_PROXY);
g_free(proxy);
Expand Down

0 comments on commit 00d62b4

Please sign in to comment.