[redland-dev] [Redland librdf RDF API 0000611]: curie.c:311: wrong array index ?

Mantis Bug Tracker mantis-bug-sender at librdf.org
Mon Jun 20 07:20:19 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=611 
====================================================================== 
Reported By:                dcb314
Assigned To:                
====================================================================== 
Project:                    Redland librdf RDF API
Issue ID:                   611
Category:                   utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-06-20 04:20
Last Modified:              2016-06-20 04:20
====================================================================== 
Summary:                    curie.c:311: wrong array index ?
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               
====================================================================== 
2016-06-20 04:20 dcb314         New Issue                                    
======================================================================



More information about the redland-dev mailing list