Skip to content

Commit 1118dd9

Browse files
committed
examples: don't lose const
1 parent ede458b commit 1118dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void opts_add_commit(describe_options *opts, const char *commit)
5454
assert(opts != NULL);
5555

5656
sz = ++opts->commit_count * sizeof(opts->commits[0]);
57-
opts->commits = xrealloc(opts->commits, sz);
57+
opts->commits = (const char **)xrealloc(opts->commits, sz);
5858
opts->commits[opts->commit_count - 1] = commit;
5959
}
6060

0 commit comments

Comments
 (0)