Changeset c3b42b in git for Singular/iplib.cc


Ignore:
Timestamp:
Aug 13, 2004, 4:24:52 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
e5627dd3d72ab05802168acf771823493696b8ef
Parents:
298d0a1b020f794c429af7513cc945ebe462e360
Message:
*hannes: NULL-deref


git-svn-id: file:///usr/local/Singular/svn/trunk@7400 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r298d0a rc3b42b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.104 2003-11-04 16:43:29 Singular Exp $ */
     4/* $Id: iplib.cc,v 1.105 2004-08-13 14:24:52 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    489489      char *n;
    490490      char *o;
    491       if (iiLocalRing[myynest]!=NULL) o=rFindHdl(iiLocalRing[myynest],NULL, NULL)->id;
    492       else                            o="none";
    493       if (currRing!=NULL)             n=rFindHdl(currRing,NULL, NULL)->id;
    494       else                            n="none";
     491      idhdl nh=NULL, oh=NULL;
     492      if (iiLocalRing[myynest]!=NULL)
     493        oh=rFindHdl(iiLocalRing[myynest],NULL, NULL);
     494      if (oh!=NULL)          o=oh->id;
     495      else                   o="none";
     496      if (currRing!=NULL)
     497        nh=rFindHdl(currRing,NULL, NULL);
     498      if (nh!=NULL)          n=nh->id;
     499      else                   n="none";
    495500      Werror("ring change during procedure call: %s -> %s",o,n);
    496501      iiRETURNEXPR[myynest+1].CleanUp();
Note: See TracChangeset for help on using the changeset viewer.