Commit 8a15b362 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

microdns: Remove useless check

CID #1402708
parent 7b4b4494
......@@ -464,13 +464,10 @@ new_entries_rd_cb( void *p_this, int i_status, const struct rr_entry *p_entries
const struct rr_data_txt *p_txt = p_entry->data.TXT;
while( p_txt && ( psz_model == NULL || psz_icon == NULL ) )
{
if( p_txt->txt )
{
if( !strncmp("md=", p_txt->txt, 3) )
psz_model = p_txt->txt + 3;
else if( !strncmp("ic=", p_txt->txt, 3) )
psz_icon = p_txt->txt + 3;
}
if( !strncmp("md=", p_txt->txt, 3) )
psz_model = p_txt->txt + 3;
else if( !strncmp("ic=", p_txt->txt, 3) )
psz_icon = p_txt->txt + 3;
p_txt = p_txt->next;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment