current loaders.c,1.101,1.102
Fabian Keil <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27273
Modified Files:
loaders.c
Log Message:
loaders: Use strdup_or_die() more often
Index: loaders.c
===================================================================
RCS file: /cvsroot/ijbswa/current/loaders.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** loaders.c 26 Feb 2016 12:29:38 -0000 1.101
--- loaders.c 26 Feb 2016 12:30:46 -0000 1.102
***************
*** 290,294 ****
fs = zalloc_or_die(sizeof(struct file_list));
! fs->filename = strdup(filename);
fs->lastmodified = statbuf->st_mtime;
--- 290,294 ----
fs = zalloc_or_die(sizeof(struct file_list));
! fs->filename = strdup_or_die(filename);
fs->lastmodified = statbuf->st_mtime;
***************
*** 531,558 ****
if (raw_out)
{
! raw = strdup("");
! if (NULL == raw)
! {
! return JB_ERR_MEMORY;
! }
}
if (prefix_out)
{
! prefix = strdup("");
! if (NULL == prefix)
! {
! freez(raw);
! return JB_ERR_MEMORY;
! }
}
if (data_out)
{
! data = strdup("");
! if (NULL == data)
! {
! freez(raw);
! freez(prefix);
! return JB_ERR_MEMORY;
! }
}
--- 531,543 ----
if (raw_out)
{
! raw = strdup_or_die("");
}
if (prefix_out)
{
! prefix = strdup_or_die("");
}
if (data_out)
{
! data = strdup_or_die("");
}
***************
*** 1196,1208 ****
if (NULL == new_bl->description)
{
! new_bl->description = strdup("Out of memory while encoding this filter's description to HTML");
}
}
else
{
! new_bl->description = strdup("No description available for this filter");
}
! new_bl->name = strdup(chomp(new_bl->name));
/*
--- 1181,1194 ----
if (NULL == new_bl->description)
{
! new_bl->description = strdup_or_die("Out of memory while "
! "encoding filter description to HTML");
}
}
else
{
! new_bl->description = strdup_or_die("No description available");
}
! new_bl->name = strdup_or_die(chomp(new_bl->name));
/*
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140