mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
clang: check for buffer existance
Make obvious to analyzer we can't get NULL here.
This commit is contained in:
parent
bb6fd1a15f
commit
462ac47003
@ -678,6 +678,9 @@ static int _get_status(struct message_data *message_data)
|
|||||||
char **buffers;
|
char **buffers;
|
||||||
char *message;
|
char *message;
|
||||||
|
|
||||||
|
if (!message_data->id)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
_lock_mutex();
|
_lock_mutex();
|
||||||
count = dm_list_size(&_thread_registry);
|
count = dm_list_size(&_thread_registry);
|
||||||
buffers = alloca(sizeof(char*) * count);
|
buffers = alloca(sizeof(char*) * count);
|
||||||
|
Loading…
Reference in New Issue
Block a user