Incidencia #45508

fc_strrep_resize() not working on NDEBUG build

Abrir Fecha: 2022-08-29 19:11 Última actualización: 2022-09-01 07:58

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1

Details

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
Comentario

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
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
2022-09-01 07:58 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Attachment File List

Editar

Please login to add comment to this ticket » Entrar