gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions.


From: Robert Norris
Subject: Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions.
Date: Wed, 23 Mar 2016 23:56:19 +0000

>>>> Are we now ok with malloc()?
>>>
>>> I just did a pull of git HEAD, the searched for malloc. I see mo
>>> malloc() added i the last year.
>>>
>>> What am I missing?
>>
>> The patch that started this thread uses strdup() which calls malloc().
>
> Yeah, there it is. Good eye.
>
> Since the input (isotime) is a fixed length string it would be
> easy to get rid of the malloc(). Or, even better, there was never any
> reason to duplicate the input string at all. Patches anyone?
>

Quote from hacking.html:

"The <code>gpsd</code> daemon doesn't (though the client-side code does)."

Since this is only for Windows builds for libgps - it is only for the client 
side thus should be OK.

Rob.


                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]