mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
api: fix bug in function hdata_move when absolute value of count is greater than 1
This commit is contained in:
@@ -562,11 +562,11 @@ hdata_move (struct t_hdata *hdata, void *pointer, int count)
|
||||
for (i = 0; i < abs_count; i++)
|
||||
{
|
||||
pointer = hdata_pointer (hdata, pointer, ptr_var);
|
||||
if (pointer)
|
||||
return pointer;
|
||||
if (!pointer)
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user