Changeset 96828e4 for filter.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r75c7e8e r96828e4  
    1919  owl_filter *f;
    2020
    21   f = owl_malloc(sizeof(owl_filter));
     21  f = g_new(owl_filter, 1);
    2222
    2323  f->name=owl_strdup(name);
     
    7070  if(!argc) return NULL;
    7171
    72   fe = owl_malloc(sizeof(owl_filterelement));
     72  fe = g_new(owl_filterelement, 1);
    7373  owl_filterelement_create(fe);
    7474
     
    133133    op2 = owl_filter_parse_primitive_expression(argc-i-1, argv+i+1, &skip);
    134134    if(!op2) goto err;
    135     tmp = owl_malloc(sizeof(owl_filterelement));
     135    tmp = g_new(owl_filterelement, 1);
    136136    if(!strcasecmp(argv[i], "and")) {
    137137      owl_filterelement_create_and(tmp, op1, op2);
Note: See TracChangeset for help on using the changeset viewer.