[MacPorts] #69384: gklib @20230327: error: 'lnlen' may be used uninitialized in this function
MacPorts
noreply at macports.org
Fri Nov 29 06:35:00 UTC 2024
#69384: gklib @20230327: error: 'lnlen' may be used uninitialized in this function
-----------------------+---------------------------------------
Reporter: rmottola | Owner: catap
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: tiger leopard snowleopard
Port: gklib |
-----------------------+---------------------------------------
Comment (by ryandesign):
Replying to [comment:6 rmottola]:
> I think the warning is actually legit and depends on the stupid way
variables are declared and initialized.
> Changing all occurrences to this:
>
>
> {{{
> size_t lnlen=0;
> size_t nlines=0;
> }}}
>
> fixes the issue and gklib compiles.
Ok, so your solution is to initialize `lnlen`, as I suggested in
comment:5.
The best way forward when there are bugs in upstream code is to report the
problem to the developers, as I suggested in comment:5.
--
Ticket URL: <https://trac.macports.org/ticket/69384#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list