|
From: <ssm...@us...> - 2007-12-07 19:51:07
|
Revision: 2697
http://selinux.svn.sourceforge.net/selinux/?rev=2697&view=rev
Author: ssmalley
Date: 2007-12-07 11:50:54 -0800 (Fri, 07 Dec 2007)
Log Message:
-----------
Duplicate storename string in select_store to avoid swig binding problem.
Modified Paths:
--------------
branches/stable/1_0/libsemanage/src/handle.c
Modified: branches/stable/1_0/libsemanage/src/handle.c
===================================================================
--- branches/stable/1_0/libsemanage/src/handle.c 2007-12-07 15:29:44 UTC (rev 2696)
+++ branches/stable/1_0/libsemanage/src/handle.c 2007-12-07 19:50:54 UTC (rev 2697)
@@ -27,6 +27,7 @@
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <sys/time.h>
#include "direct_api.h"
@@ -131,7 +132,8 @@
/* This just sets the storename to what the user requests, no
verification of existance will be done until connect */
- sh->conf->store_path = storename;
+ sh->conf->store_path = strdup(storename);
+ assert(sh->conf->store_path);
sh->conf->store_type = storetype;
return;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|