Changeset c46173 in git for Singular/fevoices.cc


Ignore:
Timestamp:
Dec 17, 2015, 11:36:24 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
fc62955b6195fba8d9906e461584a2130448be7e
Parents:
3c5fd96b4d94639d5325595fcb3427241621d64c
Message:
fix: handling exceptional cases for libSingular
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fevoices.cc

    r3c5fd96 rc46173  
    187187  else
    188188  {
    189     currentVoice->filename = omStrDup(currentVoice->prev->filename);
    190     currentVoice->pi       = currentVoice->prev->pi;
     189    if(currentVoice->prev!=NULL)
     190    {
     191      currentVoice->filename = omStrDup(currentVoice->prev->filename);
     192      currentVoice->pi       = currentVoice->prev->pi;
     193    }
     194    else
     195    {
     196      currentVoice->filename = omStrDup("");
     197      currentVoice->pi       = pi;
     198    }
    191199  }
    192200  currentVoice->buffer   = s;
Note: See TracChangeset for help on using the changeset viewer.