diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-02-11 20:08:31 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-04-07 19:18:23 +0200 |
commit | dce1791fc357bebf938f9af93d7e0ec72ac7f719 (patch) | |
tree | c69754838970bce3852f14bcd266708570d717c6 | |
parent | a2633fd69609f16e2972013713bf8eeb6802b990 (diff) | |
download | sssd-dce1791fc357bebf938f9af93d7e0ec72ac7f719.tar.gz sssd-dce1791fc357bebf938f9af93d7e0ec72ac7f719.tar.xz sssd-dce1791fc357bebf938f9af93d7e0ec72ac7f719.zip |
Fix warning zero-length gnu_printf format string
There is a warning if nsupdate does not support realm.
warning: zero-length gnu_printf format string [-Wformat-zero-length]
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | src/providers/dp_dyndns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c index b6743cf81..a12560ecd 100644 --- a/src/providers/dp_dyndns.c +++ b/src/providers/dp_dyndns.c @@ -389,7 +389,7 @@ nsupdate_msg_create_common(TALLOC_CTX *mem_ctx, const char *realm, #ifdef HAVE_NSUPDATE_REALM realm_directive = talloc_asprintf(tmp_ctx, "realm %s\n", realm); #else - realm_directive = talloc_asprintf(tmp_ctx, ""); + realm_directive = talloc_asprintf(tmp_ctx, "\n"); #endif if (!realm_directive) { goto fail; |