[Freeciv-Dev] Re: malloc warning (PR#842)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Gaute B Strokkenes <gs234@xxxxxxxxx> writes:
> On Wed, 11 Jul 2001, ChrisK@xxxxxxxx wrote:
> > CVS 11 JUL 2001 GTK+ Linux i386
> >
> > I've got a
> >
> > 2: Warning: malloc with size 0 at line 750 of unittools.c
> > 2: Letzte Mitteilung 2mal wiederholt.
> >
> > Reproducible. Savegame is here:
> >
> > http://www.enter.de/~c.knoke/bugs/malloc.sav.gz
> >
> > Login as chris, start game, terminate client.
>
> Please try the following patch (untested):
I don't see the point. What's the problem with allocating 0 bytes? It
doesn't do any harm.
Falk
|
|