[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: x_image.c



  User: cnieves 
  Date: 07/04/27 13:47:56

  Modified:    .        x_image.c
  Log:
  Added sanity check.
  
  
  
  * src/x_image.c: Added sanity check.
  
  
  
  
  Revision  Changes    Path
  1.37      +1 -1      eda/geda/gaf/gschem/src/x_image.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_image.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_image.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -b -r1.36 -r1.37
  --- x_image.c	21 Apr 2007 18:59:07 -0000	1.36
  +++ x_image.c	27 Apr 2007 17:47:56 -0000	1.37
  @@ -186,7 +186,7 @@
     ptr = formats;
     while (ptr) {
       ptr_descr = gdk_pixbuf_format_get_description (ptr->data);
  -    if (strcasecmp(ptr_descr, descr) == 0) {
  +    if (ptr_descr && (strcasecmp(ptr_descr, descr) == 0)) {
         g_free(descr);
         return(gdk_pixbuf_format_get_name(ptr->data));
       }
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs