summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locale/localed.c16
-rw-r--r--src/shared/install.c2
2 files changed, 2 insertions, 16 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c
index 23fbde0df1..e160c046a4 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -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;
diff --git a/src/shared/install.c b/src/shared/install.c
index b368b9f9ab..f9d223eee6 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -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;