diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-12-28 16:41:33 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-12-28 16:41:33 -0800 |
commit | e5debfa1c99757ad08bccd834b9596a4f5e97adb (patch) | |
tree | 9e47c92b10875f83571475e88efdf9ae4af25e34 /src/upb_def.c | |
parent | 602e093504dc07fec421df636d307654685892cb (diff) |
More incremental work; ported some of upbc.
Diffstat (limited to 'src/upb_def.c')
-rw-r--r-- | src/upb_def.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upb_def.c b/src/upb_def.c index 5f52f31..be5c181 100644 --- a/src/upb_def.c +++ b/src/upb_def.c @@ -437,7 +437,7 @@ static struct symtab_ent *resolve(struct upb_strtable *t, return e; } else { // Remove components from base until we find an entry or run out. - upb_string *sym_str = upb_string_new(true); + upb_string *sym_str = upb_string_new(); int baselen = upb_strlen(base); while(1) { // sym_str = base[0...base_len] + UPB_SYMBOL_SEPARATOR + symbol @@ -461,7 +461,7 @@ static struct symtab_ent *resolve(struct upb_strtable *t, * join("", "Baz") -> "Baz" * Caller owns a ref on the returned string. */ static upb_string *join(upb_string *base, upb_string *name) { - upb_string *joined = upb_strdup(base, true); + upb_string *joined = upb_strdup(base); upb_strlen_t len = upb_strlen(joined); if(len > 0) { upb_string_getrwbuf(joined, len + 1)[len] = UPB_SYMBOL_SEPARATOR; |