Changeset 393651 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Sep 14, 2011, 2:25:11 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
b4c4621d96ff1254191adfbbb46e66c45a69accb
Parents:
7de030d8205f4768cb8830522b1f724a624be130
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-09-14 14:25:11+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:47+01:00
Message:
fix: creation of ring (0,a),x,dp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r7de030 r393651  
    49504950 
    49514951  coeffs cf=NULL;
     4952  // allocated ring
     4953  R = (ring) omAlloc0Bin(sip_sring_bin);
    49524954
    49534955  if (pn->Typ()==INT_CMD)
     
    49754977      pn=pn->next;
    49764978      if (cf==NULL) cf=nInitChar(n_transExt,NULL);
     4979      if (cf==NULL) goto rInitError;
    49774980      R->cf=cf;
    49784981      if (pn!=NULL)
     
    51095112    cf=nInitChar(n_Zp, (void*)(long)ch);
    51105113  }
    5111   // allocated ring and set ch
    5112   R = (ring) omAlloc0Bin(sip_sring_bin);
    51135114  R->cf=cf;
    51145115#ifdef HAVE_RINGS
     
    51755176  // error case:
    51765177  rInitError:
    5177   if  (R != NULL) rDelete(R);
     5178  if  ((R != NULL)&&(R->cf!=NULL)) rDelete(R);
    51785179  if (pn != NULL) pn->CleanUp();
    51795180  if (rv != NULL) rv->CleanUp();
Note: See TracChangeset for help on using the changeset viewer.