Remove a few NULLs

Just {} is used in a lot of places now, and there's nothing
special abose those few.
parent 69aec65c
...@@ -118,21 +118,7 @@ static const char * const names[_PROP_MAX] = { ...@@ -118,21 +118,7 @@ static const char * const names[_PROP_MAX] = {
[PROP_LC_IDENTIFICATION] = "LC_IDENTIFICATION" [PROP_LC_IDENTIFICATION] = "LC_IDENTIFICATION"
}; };
static char *data[_PROP_MAX] = { static char *data[_PROP_MAX] = {};
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
};
typedef struct State { typedef struct State {
char *x11_layout, *x11_model, *x11_variant, *x11_options; char *x11_layout, *x11_model, *x11_variant, *x11_options;
......
...@@ -1735,7 +1735,7 @@ int unit_file_preset( ...@@ -1735,7 +1735,7 @@ int unit_file_preset(
unsigned *n_changes) { unsigned *n_changes) {
LookupPaths _cleanup_lookup_paths_free_ paths = {}; LookupPaths _cleanup_lookup_paths_free_ paths = {};
InstallContext _cleanup_install_context_done_ plus = {}, minus = {NULL}; InstallContext _cleanup_install_context_done_ plus = {}, minus = {};
char **i; char **i;
char _cleanup_free_ *config_path = NULL; char _cleanup_free_ *config_path = NULL;
Set _cleanup_set_free_free_ *remove_symlinks_to = NULL; Set _cleanup_set_free_free_ *remove_symlinks_to = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment