1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

api: fix bug in function hdata_move when absolute value of count is greater than 1

This commit is contained in:
Sébastien Helleu
2014-08-27 07:34:54 +02:00
parent bf723ba7bf
commit 9fe6ce1cdc
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -26,6 +26,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* core: fix modifier "weechat_print": discard only one line when several lines
are displayed in same message (closes #171)
* core: fix translation of message displayed after /upgrade
* api: fix bug in function hdata_move when absolute value of count is greater
than 1
* tests: fix build of tests when the build directory is outside source tree
(closes #178)
* tests: fix memory leak in tests launcher
+3 -3
View File
@@ -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;
}
/*