Re: CVS: commit dom link-grammar/link-grammar api.c

From: J.M. Maurer <uwog_at_uwog.net>
Date: Sun Apr 09 2006 - 16:00:36 CEST

On Sun, 2006-04-09 at 13:57 +0000, cvs@abisource.com wrote:
> Update of /cvsroot/link-grammar/link-grammar
> In directory abiword.snt.utwente.nl:/tmp/cvs-serv28655
>
> Modified Files:
> api.c
> Log Message:
> correct fix

While more elegant, that does the same, right? I don't trust myself, as
my head is busted today :-P

Marc

> Index: api.c
> ===================================================================
> RCS file: /cvsroot/link-grammar/link-grammar/api.c,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -d -r1.7 -r1.8
> --- api.c 9 Apr 2006 13:47:15 -0000 1.7
> +++ api.c 9 Apr 2006 13:57:15 -0000 1.8
> @@ -425,7 +425,7 @@
> char * cons_name;
> char * affix_name;
>
> - if(!lang || !(*lang))
> + if(!(lang && *lang))
> return NULL;
>
> dict_name = join_path(lang, "4.0.dict");
> @@ -449,7 +449,7 @@
> char * locale;
>
> locale = get_default_locale();
> - if(!locale || !(*locale))
> + if(!(locale && *locale))
> return NULL;
>
> dictionary = dictionary_create_lang(locale);
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abisource-cvs-commit-request@abisource.com with the word
> unsubscribe in the message body.
Received on Sun Apr 9 16:00:07 2006

This archive was generated by hypermail 2.1.8 : Sun Apr 09 2006 - 16:00:07 CEST