Commit 2edeff7
committed
Settings_new() code shrink
No need to temporarily duplicate the XDG_CONFIG_HOME path string.
Note that I didn't simplify or leave out the allocation of
"$XDG_CONFIG_HOME/htop" or "$HOME/.config/htop" string because I
suspect this string might be reused in the future.
Signed-off-by: Kang-Che Sung <[email protected]>1 parent 4a61e89 commit 2edeff7
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
| 690 | + | |
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
887 | 886 | | |
888 | 887 | | |
889 | | - | |
890 | | - | |
891 | 888 | | |
892 | 889 | | |
893 | | - | |
894 | | - | |
895 | 890 | | |
896 | 891 | | |
| 892 | + | |
897 | 893 | | |
898 | | - | |
899 | 894 | | |
900 | 895 | | |
901 | 896 | | |
| |||
0 commit comments