Changeset fa4562c for obarray.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e19eb97
Parents:
65b2173
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:59:42)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Prepare code for adding const qualifiers for char * and void *.

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

Legend:

Unmodified
Added
Removed
  • obarray.c

    r4d86e06 rfa4562c  
    5555  i = owl_obarray_lookup(oa, string, &v);
    5656  if(!v) {
    57     v = owl_strdup(string);
    58     owl_list_insert_element(&(oa->strings), i, v);
     57    char *v2 = owl_strdup(string);
     58    owl_list_insert_element(&(oa->strings), i, v2);
     59    return v2;
    5960  }
    6061  return v;
Note: See TracChangeset for help on using the changeset viewer.