summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_instruction.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-07 13:15:22 -0700
committerBrian Paul <[email protected]>2015-03-11 09:34:24 -0600
commitd7193ce42cedc4cc7839fc4522edf5724e954c80 (patch)
treeb24eb2b2fd2d0df24423fac7858fdbd76db191ac /src/mesa/program/prog_instruction.c
parent5376bc74ccfac0d1a4df6c5652e075d99e3f4fe4 (diff)
mesa: use strdup() instead of _mesa_strdup()
We were already using strdup() in various places in Mesa. Get rid of the _mesa_strdup() wrapper. All the callers pass a non-NULL argument so the NULL check isn't needed either. Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_instruction.c')
-rw-r--r--src/mesa/program/prog_instruction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_instruction.c b/src/mesa/program/prog_instruction.c
index 6a9bcb7b579..f9ebe4e8fd2 100644
--- a/src/mesa/program/prog_instruction.c
+++ b/src/mesa/program/prog_instruction.c
@@ -89,7 +89,7 @@ _mesa_copy_instructions(struct prog_instruction *dest,
memcpy(dest, src, n * sizeof(struct prog_instruction));
for (i = 0; i < n; i++) {
if (src[i].Comment)
- dest[i].Comment = _mesa_strdup(src[i].Comment);
+ dest[i].Comment = strdup(src[i].Comment);
}
return dest;
}