[mythtv] Re: seg fault with myfilldatabase

Doug Zobel zobel_junk at hotmail.com
Fri Feb 14 00:28:04 EST 2003


FYI: an empty string isn't a NULL string.  From the QString manpage:

bool QString::isEmpty () const
       Returns TRUE if the string is empty, i.e., if length() == 0. Thus, 
null
       strings are empty strings.

           QString a( "" );
           a.isEmpty();        // TRUE
           a.isNull();         // FALSE
           QString b;
           b.isEmpty();        // TRUE
           b.isNull();         // TRUE


On Mon Feb 10 at 14:15:36 EST 2003 Neil McCurdy wrote:

>To resolve, the following change needs to be made to filldata.cpp:
>
>Line ~ 188
>
>In parseProgram:
>
>     if (split.size() > 0)
>         pginfo->endts = split[0];
>     else
>         pginfo->endts = "";
>
>Change to:
>
>     if (split.size() > 0)
>         pginfo->endts = split[0];
>     else
>         pginfo->endts = QString::null;
>
>For some reason "" isn't treated as null.  It looks there are still some
>null endtimes being generated by xmltv.

Neil


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus



More information about the mythtv-dev mailing list