diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-02 18:38:59 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-09-02 18:53:58 +0200 |
commit | be6f556a7fce6db1125fc49d8f20ea6f7ab1c5b3 (patch) | |
tree | f8b2a367163779ddd631833fb107e3375b893820 | |
parent | aed0859ffa05ab75256cba1c1592efc1e61a1b6e (diff) | |
download | lthor-be6f556a7fce6db1125fc49d8f20ea6f7ab1c5b3.tar.gz lthor-be6f556a7fce6db1125fc49d8f20ea6f7ab1c5b3.tar.bz2 lthor-be6f556a7fce6db1125fc49d8f20ea6f7ab1c5b3.zip |
Fix file testing
Change-Id: Ide8250910005c37a6ecadcb81d4d3b8e1e646bda
Reported-by: Tomasz Wozniak <t.wozniak@samsung.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r-- | libthor/thor.c | 3 | ||||
-rw-r--r-- | lthor.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libthor/thor.c b/libthor/thor.c index 4ab42a2..5a51727 100644 --- a/libthor/thor.c +++ b/libthor/thor.c @@ -464,6 +464,9 @@ int thor_send_data(thor_device_handle *th, struct thor_data_src *data, int_data[0] = type; int_data[1] = filesize; + if (!th) + continue; + ret = t_thor_exec_cmd_full(th, RQT_DL, RQT_DL_FILE_INFO, int_data, ARRAY_SIZE(int_data), (char **)&filename, 1, &resp); @@ -63,6 +63,8 @@ static int test_tar_file_list(char **tarfilelist) thor_release_data_src(data); if (ret) goto error; + + ++tarfilelist; } return 0; |