ldb: rule_id in ldb_parse_tree should be const
authorAndrew Tridgell <tridge@samba.org>
Tue, 2 Aug 2011 07:17:13 +0000 (17:17 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 4 Aug 2011 06:17:25 +0000 (16:17 +1000)
this allows assignment to a constant string without allocation

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

lib/ldb/include/ldb.h

index 1305d8e2e50bf794a5a1440ac91ad1b5a8590eca..4220ed096fae6178d0c5c308eb938cced3dcc636 100644 (file)
@@ -305,7 +305,7 @@ struct ldb_parse_tree {
                struct {
                        const char *attr;
                        int dnAttributes;
-                       char *rule_id;
+                       const char *rule_id;
                        struct ldb_val value;
                } extended;
                struct {