remove unnessecary strdup

This commit is contained in:
Jarcode
2019-03-14 21:57:26 -07:00
parent 0acf7d4188
commit 06644549e2
3 changed files with 3 additions and 3 deletions

View File

@@ -489,7 +489,7 @@ void ext_process(struct glsl_ext* ext, const char* f) {
for (size_t p = 0; p < bbuf_idx; ++p)
if (bbuf[p] == ':') sep = p;
if (sep >= 0) {
parsed_default = strdup(bbuf + sep + 1);
parsed_default = bbuf + sep + 1;
bbuf[sep] = '\0';
}
parsed_name = bbuf;