linux: fix issue with pointer to rvalue struct member

This commit is contained in:
Christian Helmuth 2015-05-24 22:47:25 +02:00
parent 918895a4f4
commit 3384d3d23c
1 changed files with 3 additions and 1 deletions

View File

@ -376,7 +376,9 @@ void Pd_session_component::start(Capability<Dataspace> binary)
return; /* XXX reflect error to client */
}
const char *filename = ds->fname().buf;
/* we need 's' on stack to make it an lvalue with an lvalue member we use the pointer to */
Linux_dataspace::Filename s = ds->fname();
const char *filename = s.buf;
/*
* In order to be executable via 'execve', a program must be represented as