jwalt       2003/09/17 12:27:59

  Modified:    lib      AxKit.pm
  Log:
  - bug fix for FromUTF8/ToUTF8 (segfault)
  
  Revision  Changes    Path
  1.52      +3 -1      xml-axkit/lib/AxKit.pm
  
  Index: AxKit.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- AxKit.pm  4 Sep 2003 20:59:48 -0000       1.51
  +++ AxKit.pm  17 Sep 2003 19:27:59 -0000      1.52
  @@ -49,6 +49,7 @@
   }
   
   sub FromUTF8($) {
  +    return undef if !defined $_[0];
       if (!$AxKit::Cfg->{from_utf8}) {
           return $_[0] if (exists $AxKit::Cfg->{from_utf8});
           AxKit::Debug(9,"encoding to ".$AxKit::Cfg->ExternalEncoding());
  @@ -59,6 +60,7 @@
   }
   
   sub ToUTF8($) {
  +    return undef if !defined $_[0];
       if (!$AxKit::Cfg->{to_utf8}) {
           return $_[0] if (exists $AxKit::Cfg->{to_utf8});
           AxKit::Debug(9,"decoding from ".$AxKit::Cfg->ExternalEncoding());
  
  
  

Reply via email to