OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_sect.c versions 1.15 and 1.16
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_sect.c 1.15 -> 1.16

--- rc_sect.c    2003/06/26 18:45:14     1.15
+++ rc_sect.c    2003/06/27 14:26:13     1.16
@@ -161,8 +161,13 @@
 
 const char *sectionGetdata(rc_section_t *pSec)
 { /* Data of section, this is the script body of the particular section */
-    if (pSec && scriptGetdata(pSec->m_pData))
-        return(scriptGetdata(pSec->m_pData));
+    char *szScriptdata = NULL;
+
+    if (pSec && (szScriptdata = scriptGetdata(pSec->m_pData)))
+        if (strlen(szScriptdata) > 0)
+            return(szScriptdata);
+        else
+            return NULL;
     else
         RC_THROW(RC_ERR_USE);
 

CVSTrac 2.0.1