Skip to content

Commit

Permalink
Fix to orbmortem file saving from Issue #141
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Mar 11, 2024
1 parent b74b4e5 commit ab66c1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Src/orbmortem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,9 +1175,10 @@ static void _doSave( struct RunTime *r, bool includeDebug )
{
p = r->opText[w].buffer;

/* Skip debug lines unless specifically told to include them */
if ( ( r->opText[w].lt == LT_DEBUG ) && ( !includeDebug ) )
/* Skip blank and debug lines unless specifically told to include them */
if ( !p || ( ( r->opText[w].lt == LT_DEBUG ) && ( !includeDebug ) ) )
{
w++;
continue;
}

Expand Down Expand Up @@ -1483,7 +1484,7 @@ int main( int argc, char *argv[] )
break;

case SIO_EV_SAVE: // ------------------ Request for file save -------------------------------------------
if ( _r.options->file )
if ( !_r.options->file )
{
_doSave( &_r, false );
}
Expand Down

0 comments on commit ab66c1b

Please sign in to comment.