Remove a few NULLs

Just {} is used in a lot of places now, and there's nothing
special abose those few.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-04-13 20:24:39 -04:00
parent 69aec65cf8
commit 7914d6bba4
2 changed files with 2 additions and 16 deletions
+1 -15
View File
@@ -118,21 +118,7 @@ static const char * const names[_PROP_MAX] = {
[PROP_LC_IDENTIFICATION] = "LC_IDENTIFICATION"
};
static char *data[_PROP_MAX] = {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
};
static char *data[_PROP_MAX] = {};
typedef struct State {
char *x11_layout, *x11_model, *x11_variant, *x11_options;
+1 -1
View File
@@ -1735,7 +1735,7 @@ int unit_file_preset(
unsigned *n_changes) {
LookupPaths _cleanup_lookup_paths_free_ paths = {};
InstallContext _cleanup_install_context_done_ plus = {}, minus = {NULL};
InstallContext _cleanup_install_context_done_ plus = {}, minus = {};
char **i;
char _cleanup_free_ *config_path = NULL;
Set _cleanup_set_free_free_ *remove_symlinks_to = NULL;