]> granicus.if.org Git - apache/commitdiff
Replace dodgy cast with ap_set_string_slot
authorNick Kew <niq@apache.org>
Tue, 15 Nov 2005 10:29:27 +0000 (10:29 +0000)
committerNick Kew <niq@apache.org>
Tue, 15 Nov 2005 10:29:27 +0000 (10:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@344349 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_dbd.c

index 15d1ae4bb29dea3f5ec5364253349e03a4dd1e1f..460ad23b01663984e1c4ec991b3c96546d716043 100644 (file)
@@ -70,8 +70,7 @@ static const char *authn_dbd_prepare(cmd_parms *cmd, void *cfg, const char *quer
     authn_dbd_prepare_fn(cmd->server, query, label);
 
     /* save the label here for our own use */
-    *(void**)cfg = label;
-    return NULL;
+    return ap_set_string_slot(cmd, cfg, label);
 }
 static const command_rec authn_dbd_cmds[] =
 {