Re: [evolution-patches] (groupwise) using GString
- From: Jeffrey Stedfast <fejj novell com>
- To: Sivaiah Nallagatla <snallagatla novell com>
- Cc: sparthasarathi novell com, evolution-patches lists ximian com
- Subject: Re: [evolution-patches] (groupwise) using GString
- Date: Thu, 17 Mar 2005 10:53:12 -0500
just do:
*str = gstr->str;
*len = gstr->len;
g_string_free (gstr, FALSE);
On Thu, 2005-03-17 at 16:46 +0530, Sivaiah Nallagatla wrote:
> On Wed, 2005-03-16 at 15:40 +0530, Parthasarathi Susarla wrote:
> > + *str = g_strdup (gstr->str);
> > *len = strlen (*str) ;
>
> You need not calculate the stting length here, it is already part of
> Gstring struct. You are not checking for null checks for may values you
> retrieve from EGwItem. Are you sure they alwasy exist ? Looks good
> otherwise.
>
> Siva
> _______________________________________________
> evolution-patches mailing list
> evolution-patches lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-patches
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]