aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-03 17:20:15 +0200
committerThomas White <taw@physics.org>2023-06-03 17:20:15 +0200
commitba872e9e528c5a77b1ab1cb5417866648b11179b (patch)
tree846945056080a5f38009fb3e9bdb1f082d003b3b /src
parent187600a9e768cea530147d4e16a62c6665502070 (diff)
ASAP::O: Fix some uninitialised stuff
Diffstat (limited to 'src')
-rw-r--r--src/im-asapo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c
index e0a23546..4c0533f4 100644
--- a/src/im-asapo.c
+++ b/src/im-asapo.c
@@ -284,6 +284,8 @@ static void send_real(struct im_asapo *a, struct image *image)
AsapoMessageHeaderHandle header;
AsapoErrorHandle err;
+ err = asapo_new_handle();
+
header = asapo_create_message_header(image->serial,
image->data_block_size,
image->filename,
@@ -312,6 +314,8 @@ static void send_placeholder(struct im_asapo *a, struct image *image)
AsapoMessageHeaderHandle header;
AsapoErrorHandle err;
+ err = asapo_new_handle();
+
header = asapo_create_message_header(image->serial,
8, /* strlen("SKIPPED"+\0) */
image->filename,
@@ -339,6 +343,7 @@ static void send_placeholder(struct im_asapo *a, struct image *image)
* send a placeholder */
void im_asapo_send(struct im_asapo *a, struct image *image, int hit)
{
+ if ( a == NULL ) return;
if ( a->producer == NULL ) return;
profile_start("asapo-send");
if ( hit ) {