]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
const
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2017 23:36:41 +0000 (19:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2017 23:36:41 +0000 (19:36 -0400)
src/lib/util/value.c

index fd0ceef21d0890af8515a9c8c1c420c3cd76e9cd..5fdcec0f7a4c5bd9923cdc578555e053e5ec95e8 100644 (file)
@@ -2621,7 +2621,9 @@ int fr_value_box_memsteal(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_dict_attr_t c
 {
        uint8_t const   *bin;
 
+#ifndef NDEBUG
        (void) talloc_get_type_abort(src, uint8_t);
+#endif
 
        bin = talloc_steal(ctx, src);
        if (!bin) {