Jesse Weinstein <[email protected]> writes:

> +static gint
> +_compare_GncSxVariables(gconstpointer a, gconstpointer b)
> +{
> +  return strcmp(((const GncSxVariable*)a)->name, ((const 
> GncSxVariable*)b)->name);
> +}

You should probably use safe_strcmp() here (in case ->name is NULL).
Or maybe even a utf8-capable comparison operator.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [email protected]                        PGP key available
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to