diff options
Diffstat (limited to 'src/screenshotr.c')
-rw-r--r-- | src/screenshotr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshotr.c b/src/screenshotr.c index 11d6506..77835da 100644 --- a/src/screenshotr.c +++ b/src/screenshotr.c | |||
@@ -142,7 +142,7 @@ LIBIMOBILEDEVICE_API screenshotr_error_t screenshotr_take_screenshot(screenshotr | |||
142 | plist_t node = plist_dict_get_item(dict, "MessageType"); | 142 | plist_t node = plist_dict_get_item(dict, "MessageType"); |
143 | char *strval = NULL; | 143 | char *strval = NULL; |
144 | plist_get_string_val(node, &strval); | 144 | plist_get_string_val(node, &strval); |
145 | if (!strval || strcmp(strval, "ScreenShotReply")) { | 145 | if (!strval || strcmp(strval, "ScreenShotReply") != 0) { |
146 | debug_info("invalid screenshot data received!"); | 146 | debug_info("invalid screenshot data received!"); |
147 | res = SCREENSHOTR_E_PLIST_ERROR; | 147 | res = SCREENSHOTR_E_PLIST_ERROR; |
148 | goto leave; | 148 | goto leave; |