eclipse-cyclonedds / cyclonedds

Eclipse Cyclone DDS project
https://projects.eclipse.org/projects/iot.cyclonedds
Other
798 stars 349 forks source link

Consistently set in_file to a malloc'd pointer #2048

Closed eboasson closed 1 week ago

eboasson commented 1 week ago

In some cases, the input file would point to a string constant (stdin name), in some cases to a command-line argument, and in some (probably most in reality) to malloc'd address. This changes the code to always assign it to a malloc'd string.