projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a936b20
)
ralloc: Move declaration before code.
author
Vinson Lee
<vlee@vmware.com>
Wed, 26 Oct 2011 03:30:27 +0000
(20:30 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 26 Oct 2011 03:31:14 +0000
(20:31 -0700)
Fixes build error with MSVC.
src/glsl/ralloc.c
patch
|
blob
|
history
diff --git
a/src/glsl/ralloc.c
b/src/glsl/ralloc.c
index 2967598aecb6b28b8aab6224185d5cc6cf04908d..f5f3934ac2c894414304716878f2972cd3402231 100644
(file)
--- a/
src/glsl/ralloc.c
+++ b/
src/glsl/ralloc.c
@@
-439,8
+439,9
@@
ralloc_asprintf_append(char **str, const char *fmt, ...)
bool
ralloc_vasprintf_append(char **str, const char *fmt, va_list args)
{
+ size_t existing_length;
assert(str != NULL);
-
size_t
existing_length = *str ? strlen(*str) : 0;
+ existing_length = *str ? strlen(*str) : 0;
return ralloc_vasprintf_rewrite_tail(str, existing_length, fmt, args);
}