待辦事項 #45508

fc_strrep_resize() not working on NDEBUG build

啟用日期: 2022-08-29 19:11 最後更新: 2022-09-01 07:58

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

fc_strrep_resize() has:

#ifndef FREECIV_NDEBUG
bool success = fc_strrep(str, (*len), search, replace);
#endif

The purpose has (clearly?) been to not have 'success' variable in NDEBUG build, but the fc_strrep() call should still be made for its side effects.

Ticket History (3/6 Histories)

2022-08-29 19:11 Updated by: cazfi
  • New Ticket "fc_strrep_resize() not working on NDEBUF build" created
2022-08-29 19:26 Updated by: cazfi
  • Summary Updated
2022-08-29 22:45 Updated by: cazfi
評語

fc_strrep_resize() is used only by freeciv-manual. The kind of people who use freeciv-manual are unlikely to be using NDEBUG builds, so I think actual impact of this bug to be really minor.

2022-08-29 23:59 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2022-09-01 07:58 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

Attachment File List

編輯

Please login to add comment to this ticket » 登入