1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

clang: check for buffer existance

Make obvious to analyzer we can't get NULL here.
This commit is contained in:
Zdenek Kabelac 2021-09-21 18:07:41 +02:00
parent bb6fd1a15f
commit 462ac47003

View File

@ -678,6 +678,9 @@ static int _get_status(struct message_data *message_data)
char **buffers;
char *message;
if (!message_data->id)
return -EINVAL;
_lock_mutex();
count = dm_list_size(&_thread_registry);
buffers = alloca(sizeof(char*) * count);