diff options
Diffstat (limited to 'src/installation_proxy.c')
| -rw-r--r-- | src/installation_proxy.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index 8bde154..9f367aa 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -847,11 +847,12 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_status_get_error(plist_t status | |||
| 847 | 847 | ||
| 848 | LIBIMOBILEDEVICE_API void instproxy_status_get_name(plist_t status, char **name) | 848 | LIBIMOBILEDEVICE_API void instproxy_status_get_name(plist_t status, char **name) |
| 849 | { | 849 | { |
| 850 | *name = NULL; | ||
| 851 | if (name) { | 850 | if (name) { |
| 852 | plist_t node = plist_dict_get_item(status, "Status"); | 851 | plist_t node = plist_dict_get_item(status, "Status"); |
| 853 | if (node) { | 852 | if (node) { |
| 854 | plist_get_string_val(node, name); | 853 | plist_get_string_val(node, name); |
| 854 | } else { | ||
| 855 | *name = NULL; | ||
| 855 | } | 856 | } |
| 856 | } | 857 | } |
| 857 | } | 858 | } |
| @@ -907,10 +908,13 @@ LIBIMOBILEDEVICE_API void instproxy_status_get_current_list(plist_t status, uint | |||
| 907 | 908 | ||
| 908 | LIBIMOBILEDEVICE_API void instproxy_command_get_name(plist_t command, char** name) | 909 | LIBIMOBILEDEVICE_API void instproxy_command_get_name(plist_t command, char** name) |
| 909 | { | 910 | { |
| 910 | *name = NULL; | 911 | if (name) { |
| 911 | plist_t node = plist_dict_get_item(command, "Command"); | 912 | plist_t node = plist_dict_get_item(command, "Command"); |
| 912 | if (node) { | 913 | if (node) { |
| 913 | plist_get_string_val(node, name); | 914 | plist_get_string_val(node, name); |
| 915 | } else { | ||
| 916 | *name = NULL; | ||
| 917 | } | ||
| 914 | } | 918 | } |
| 915 | } | 919 | } |
| 916 | 920 | ||
