Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1
systemd
0011-strv-don-t-access-potentially-NULL-string-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0011-strv-don-t-access-potentially-NULL-string-arrays.patch of Package systemd
From 5b4fb02d890d5c9777e9a6e798e0b8922a8a9fd8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering <lennart@poettering.net> Date: Wed, 2 Oct 2013 19:38:28 +0200 Subject: [PATCH 11/15] strv: don't access potentially NULL string arrays --- src/shared/env-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/env-util.c b/src/shared/env-util.c index 5e29629..7976881 100644 --- a/src/shared/env-util.c +++ b/src/shared/env-util.c @@ -405,7 +405,9 @@ char **strv_env_clean_log(char **e, const char *message) { e[k++] = *p; } - e[k] = NULL; + if (e) + e[k] = NULL; + return e; } -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor