Changeset 320251 in git


Ignore:
Timestamp:
May 2, 2007, 12:02:11 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
Children:
52e38fce6d01c11b7934d7b1830db574af0f6983
Parents:
16493dfc8a54ca337ccff41e947b70df61c58c2b
Message:
*hannes: NULL deref.


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

Legend:

Unmodified
Added
Removed
  • kernel/clapsing.cc

    r16493d r320251  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.14 2006-10-02 14:47:51 Singular Exp $
     5// $Id: clapsing.cc,v 1.15 2007-05-02 10:02:11 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    892892        pDelete(&p);
    893893      }
    894       number n_T=pGetCoeff(T_F_conv);
     894      number n_T;
     895      if (T_F_conv!=NULL) n_T=pGetCoeff(T_F_conv);
     896      else                n_T=nInit(0);
    895897      number n_f=pGetCoeff(f);
    896       poly n_f_m=pMult_nn(pCopy(f),n_T);
    897       T_F_conv=pMult_nn(T_F_conv,n_f);
     898      poly n_f_m=pCopy(f);
     899      if (n_T!=NULL) n_f_m=pMult_nn(n_f_m,n_T);
     900      if (T_F_conv!=NULL) T_F_conv=pMult_nn(T_F_conv,n_f);
    898901      T_F_conv=pSub(T_F_conv,n_f_m);
    899902      if (T_F_conv!=NULL)
Note: See TracChangeset for help on using the changeset viewer.