vconsole-setup: simplify path allocation
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Aug 2023 12:19:21 +0000 (14:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Aug 2023 08:31:31 +0000 (10:31 +0200)
commit7b218ef9309f40f47a597c15bbd134f0e0d113a7
tree2d9d3adb4f54bd1745047a54f2323b1b369ba080
parentbc6059844d6c06130ec3eef715c7bb3c57d7bf73
vconsole-setup: simplify path allocation

Let's code this straighforwadly, and just allocate the string as we need
it, instead of doing pre-allocation.

This is not performance sensitive, as this will almost certainly just
return /dev/tty1 after the first transition.
src/vconsole/vconsole-setup.c