Skip to content

Commit

Permalink
activation: Fix logical not vs. value comparison, silencing compiler …
Browse files Browse the repository at this point in the history
…warning
  • Loading branch information
nikias committed Jul 1, 2016
1 parent 79bbdc0 commit 441773d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activation.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static idevice_activation_error_t idevice_activation_parse_buddyml_response(idev
xmlXPathObjectPtr xpath_result = NULL;
int i = 0;

if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML)
if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML)
return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE;

doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_NOERROR);
Expand Down Expand Up @@ -341,7 +341,7 @@ static idevice_activation_error_t idevice_activation_parse_html_response(idevice
xmlXPathContextPtr context = NULL;
xmlXPathObjectPtr xpath_result = NULL;

if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_HTML)
if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_HTML)
return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE;

doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_RECOVER | XML_PARSE_NOERROR);
Expand Down

0 comments on commit 441773d

Please sign in to comment.