Skip to content
Snippets Groups Projects
Commit 03d1c875 authored by Dirk Zimoch's avatar Dirk Zimoch
Browse files

bugfix for empty variable assignment

parent 9811057b
No related branches found
No related tags found
No related merge requests found
...@@ -218,6 +218,7 @@ size_t replaceExpressions(const char* r, char* buffer, size_t buffersize) ...@@ -218,6 +218,7 @@ size_t replaceExpressions(const char* r, char* buffer, size_t buffersize)
char* w = buffer; char* w = buffer;
char* s; char* s;
*w = 0;
while (*r) while (*r)
{ {
s = w; s = w;
......
...@@ -87,3 +87,7 @@ x=-0bla -0.1 ...@@ -87,3 +87,7 @@ x=-0bla -0.1
x=-2**2 0-2**2 0+-2**2 0--2**2 x=-2**2 0-2**2 0+-2**2 0--2**2
# $(x) should be: 4 -4 4 -4 # $(x) should be: 4 -4 4 -4
x=
y=$(x)
# <$(x)><$(y)> should be: <><>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment