mirror of
https://github.com/boostorg/build.git
synced 2026-02-11 23:52:20 +00:00
Fix compilation for conforming C compilers, in this case VC7. Variable declarations are only allowed at the start of scopes, not in the middle like C++.
[SVN r19455]
This commit is contained in:
@@ -933,6 +933,7 @@ LIST *builtin_normalize_path( PARSE *parse, FRAME *frame )
|
||||
char* current; /* Working pointer. */
|
||||
int dotdots = 0; /* Number of '..' elements seen and not processed yet. */
|
||||
int rooted = arg1->string[0] == '/';
|
||||
char* result;
|
||||
|
||||
/* Make a copy of input: we should not change it. */
|
||||
string_new(in);
|
||||
@@ -998,7 +999,7 @@ LIST *builtin_normalize_path( PARSE *parse, FRAME *frame )
|
||||
string_push_back(out, *current);
|
||||
|
||||
|
||||
char* result = newstr(out->size ? out->value : (rooted ? "/" : "."));
|
||||
result = newstr(out->size ? out->value : (rooted ? "/" : "."));
|
||||
string_free(in);
|
||||
string_free(out);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user