diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-04-30 11:37:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 11:37:19 +0200 |
commit | 0892f3f999b0bd0103b43a7e7f8ea6d100ae6aaf (patch) | |
tree | 34cdeb30c796169ced2f5f1cac1720c2513e23d8 /src/libsystemd-network | |
parent | 8d76f2905d64ca2a833964a8e71feb04a98f024f (diff) | |
parent | ccd52940d06fc6ba06f44f7ea64f056529c0beb0 (diff) | |
download | systemd-0892f3f999b0bd0103b43a7e7f8ea6d100ae6aaf.tar.gz |
Merge pull request #12420 from mrc0mmand/coccinelle-tweaks
Coccinelle improvements
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/network-internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index 2154cf7eac..a112b9f70f 100644 --- a/src/libsystemd-network/network-internal.c +++ b/src/libsystemd-network/network-internal.c @@ -612,7 +612,7 @@ int serialize_dhcp_option(FILE *f, const char *key, const void *data, size_t siz assert(data); hex_buf = hexmem(data, size); - if (hex_buf == NULL) + if (!hex_buf) return -ENOMEM; fprintf(f, "%s=%s\n", key, hex_buf); |