1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00
Peter Rajnoha 8a23683a59 config: remove unnecessary copy of config line's space prefix before printing
When we wanted to insert '#' before a config line (to comment it out),
we used dm_pool_strndup to temporarily copy the space prefix first so
we can assemble the final line with:

   "<space_prefix># <key>=<value>":

out of original:

  "<space_prefix><key>=<value>".

The space_prefix copy is not necessary, we can just use fprintf's
precision modifier "%.*s" to print the exact part if we alrady
know space_prefix length.
2022-08-17 10:47:43 +02:00
..
2022-07-11 01:18:24 +02:00
2018-06-08 13:40:53 +01:00
2018-06-08 13:40:53 +01:00
2022-07-11 01:18:24 +02:00
2022-02-24 17:22:04 -06:00
2021-09-27 18:56:14 +02:00
2021-09-15 15:24:56 +02:00
2021-03-19 23:21:18 +01:00
2021-02-08 23:53:41 +01:00
2018-06-08 13:40:53 +01:00
2021-02-08 23:43:38 +01:00
2018-06-08 13:40:53 +01:00
2022-02-07 20:02:11 +01:00
2022-07-11 01:18:24 +02:00
2021-02-08 23:53:41 +01:00
2018-06-08 13:40:53 +01:00