[redland-dev] [Raptor RDF Syntax Library 0000621]: curie.c:311: bad test ?

Mantis Bug Tracker mantis-bug-sender at librdf.org
Sat May 20 02:38:13 EDT 2017


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=621 
====================================================================== 
Reported By:                dcb314
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   621
Category:                   portability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2017-05-19 23:38
Last Modified:              2017-05-19 23:38
====================================================================== 
Summary:                    curie.c:311: bad test ?
Description: 
curie.c:311]: (warning) Logical conjunction always evaluates to false: EXPR ==
'.' && EXPR == '\0'.

Source code is

         else if(sptr[0] == '.' && sptr[1] == '.' && sptr[1] == '\0')

Maybe better code

         else if(sptr[0] == '.' && sptr[1] == '.' && sptr[2] == '\0')

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2017-05-19 23:38 dcb314         New Issue                                    
======================================================================



More information about the redland-dev mailing list