Skip to content

Commit f1edd10

Browse files
moritzbuhlAndreasFuchsTPM
authored andcommitted
test: fix scan-build warnings
* test/command-source_unit.c:297:26: warning: 1st function call argument is an uninitialized value [core.CallAndMessage] * test/command-source_unit.c:336:11: warning: 2nd function call argument is an uninitialized value [core.CallAndMessage] * test/command-source_unit.c:340:5: warning: 1st function call argument is an uninitialized value [core.CallAndMessage] Signed-off-by: Moritz Buhl <moritz.buhl@infineon.com>
1 parent d0601a9 commit f1edd10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/command-source_unit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ command_source_on_io_ready_success_test (void **state)
269269
GIOStream *iostream;
270270
HandleMap *handle_map;
271271
Connection *connection;
272-
Tpm2Command *command_out;
272+
Tpm2Command *command_out = NULL;
273273
gint client_fd;
274274
guint8 data_in [] = { 0x80, 0x01, 0x0, 0x0, 0x0, 0x17,
275275
0x0, 0x0, 0x01, 0x7a, 0x0, 0x0,
@@ -311,11 +311,11 @@ static void
311311
command_source_on_io_ready_eof_test (void **state)
312312
{
313313
struct source_test_data *data = (struct source_test_data*)*state;
314-
source_data_t *source_data;
314+
source_data_t *source_data = NULL;
315315
GIOStream *iostream;
316316
HandleMap *handle_map;
317317
Connection *connection;
318-
ControlMessage *msg;
318+
ControlMessage *msg = NULL;
319319
gint client_fd, hash_table_size;
320320
gboolean ret;
321321

0 commit comments

Comments
 (0)