[srm-cvs] CVS Update: - Make unset() on application variables work.

From: <d.rethans[@]jdimedia.nl>
Date: Fri Feb 22 2002 - 22:23:02 CET

Date: Fri Feb 22 22:23:02 CET 2002
User: Derick Rethans
Directory: srm/main/src

Log Message:
 [0.25]
 - Make unset() on application variables work.
 
Modified files:
           srm/main/src/connection.c (version: 1.61)

[FILE: /srm/main/src/connection.c]

--- srm/main/src/connection.c:1.60 Mon Feb 11 21:31:28 2002 GMT
+++ srm/main/src/connection.c Fri Feb 22 20:23:02 2002 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.60 2002/02/11 22:31:28 derick Exp $ */
+/* $Id: cvstemp,v 1.61 2002/02/22 21:23:02 derick Exp $ */
 
 /* The contents of this file are subject to the Vulcan Logic Public
  * License Version 1.1 (the "License"); you may not use this file
@@ -395,7 +395,8 @@
         switch (store->u8_value) {
                 case SRM_ST_APPLICATION:
                         if ((ret_val = srm_global_data_retrieve (key->s_value, key->value_length)) == NULL) {
- srm_set_error_string ((struct srm_value**) &ret_val, ERRMSG_KEY_NOT_EXISTS);
+ ret_val = srm_value_init();
+ VALP_SET_NULL(ret_val);
                         }
                         break;
                 case SRM_ST_SESSION:
@@ -404,7 +405,8 @@
                         memcpy (&session[sizeof (sess_key_t)], key->s_value, key->value_length);
 
                         if ((ret_val = srm_session_data_retrieve (session, sizeof(sess_key_t) + key->value_length)) == NULL) {
- srm_set_error_string ((struct srm_value**) &ret_val, ERRMSG_KEY_NOT_EXISTS);
+ ret_val = srm_value_init();
+ VALP_SET_NULL(ret_val);
                         }
 
                         free (session);
Received on Fri Feb 22 22:23:09 2002

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 11:00:06 CET