device: fix compiler bugs

This commit is contained in:
Kamil Trzcinski
2023-03-03 00:28:48 +01:00
parent edba5098d2
commit 9db8ba5fa5
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ buffer_list_t *device_open_buffer_list2(device_t *dev, const char *path, bool do
{
char name[64];
int index = 0;
buffer_list_t *buf_list;
buffer_list_t *buf_list = NULL;
if (!dev) {
return NULL;