Changeset 997bf7 in git


Ignore:
Timestamp:
Jul 10, 2019, 5:07:42 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
18296cd9190bb2f8c652446aa5cf3a783ad2cb66
Parents:
c36a59349478e81a9b576d5483791fd3ec54e789
Message:
fix: compatibility
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    rc36a59 r997bf7  
    228228{
    229229        int i = 0;
    230         void **l = (void **)omalloc(blackboxTableCnt * sizeof(void *));
    231         struct blackbox_list *list_struct = (struct blackbox_list *) omalloc(sizeof(struct blackbox_list));
     230        void **l = (void **)omalloc0(blackboxTableCnt * sizeof(void *));
     231        struct blackbox_list *list_struct = (struct blackbox_list *) omAlloc0(sizeof(struct blackbox_list));
    232232        list_struct->count = blackboxTableCnt;
    233233        list_struct->list = l;
  • Singular/blackbox.h

    rc36a59 r997bf7  
    8383/// struct for containing list of blackbox names and the number of them. 
    8484struct blackbox_list {
    85         int count = 0;
    86         void **list = NULL;
     85        int count;
     86        void **list;
    8787};
    8888
Note: See TracChangeset for help on using the changeset viewer.