registry: simplify strdup() error handling
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 18 Mar 2021 23:46:15 +0000 (09:46 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 4 May 2023 08:46:16 +0000 (18:46 +1000)
commita50890b155e37d4347b1ec238ec998e6ad19476d
tree20f7f2c1d1cb125c48247412837cdf10a3b6dff4
parent46b7753fb816901c17266f59306e85029307bc16
registry: simplify strdup() error handling

strdup() is the least likely call to fail here, let's move it to the bottom so
we don't need to worry about the allocated string.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/registry.c