testsuite: Fix warnings

Updates #4662
This commit is contained in:
Chris Johns
2022-08-05 07:51:43 +10:00
parent 46131ce0e1
commit c36d608079
2 changed files with 4 additions and 3 deletions

View File

@@ -919,7 +919,7 @@ T_TEST_CASE( tftp_read_null_buffer )
*/
T_TEST_CASE( tftp_write_null_tftp_handle )
{
char data_buffer[10];
char data_buffer[10] = { 0 };
ssize_t res;
res = tftp_write(

View File

@@ -12,9 +12,10 @@
#include <stdlib.h>
void* p;
int main (void)
{
free((void *) 42);
free(p);
return 0;
}