Skip to content

Commit

Permalink
struct filenameItems: development bug
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Aug 10, 2015
1 parent 48669af commit 9ca8c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3607,7 +3607,7 @@ CF::chap2_1(void)
return;

// filename extension
if( pIn->filenameItems.extension != ".nc" )
if( pIn->filenameItems.extension != "nc" )
{
if( notes->inq(bKey + "21a") )
{
Expand Down
2 changes: 1 addition & 1 deletion src/hdhC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ setFilename(std::string& f)
fC.filename = f;

// file components
if( (pos = fC.file.rfind('.') ) < std::string::npos )
if( (pos = fC.filename.rfind('.') ) < std::string::npos )
{
if( pos == 0 )
fC.extension = fC.filename; // no basename
Expand Down

0 comments on commit 9ca8c1e

Please sign in to comment.