...That would be a bad idea, as you should be aware of.
You are passing the address of a local variable which is then stored and later the local variable goes out of scope.