On Wed, 12 Aug 2009, Enlightenment SVN wrote: > + fields = sscanf(_eina_hamster_time, "%02i:%02i:%02i", &hrs, &min, > &sec); > + if (fields == 3) > + { > + _eina_hamsters = (hrs * 60) + min; > + fields = sscanf(_eina_hamster_date, "%s %i %i", mon, &day, > &year); > + if (fields == 3) > + {
[snip] > + } shouldn't we return 0 in case the second test fails ? > + } > + } > + // format: [rest - year][0-12 - month][0-31 - day][0-23 - hrs][0-59 - sec] > return _eina_hamsters; > } Vincent ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel