projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1d99cd7
)
edit_read_line(): Remove a pointless pointer check coverity complaints about (CID...
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 8 May 2016 10:45:32 +0000
(10:45 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 8 May 2016 10:45:32 +0000
(10:45 +0000)
loaders.c
patch
|
blob
|
history
diff --git
a/loaders.c
b/loaders.c
index
92d8cec
..
2c84b32
100644
(file)
--- a/
loaders.c
+++ b/
loaders.c
@@
-1,4
+1,4
@@
-const char loaders_rcs[] = "$Id: loaders.c,v 1.10
1 2016/02/26 12:29:38
fabiankeil Exp $";
+const char loaders_rcs[] = "$Id: loaders.c,v 1.10
2 2016/02/26 12:30:46
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
@@
-630,15
+630,12
@@
jb_err edit_read_line(FILE *fp,
if (*linestart)
{
is_empty = 0;
if (*linestart)
{
is_empty = 0;
- if (
data
)
+ if (
string_append(&data, linestart)
)
{
{
- if (string_append(&data, linestart))
- {
- freez(raw);
- freez(prefix);
- free(linebuf);
- return JB_ERR_MEMORY;
- }
+ freez(raw);
+ freez(prefix);
+ free(linebuf);
+ return JB_ERR_MEMORY;
}
}
}
}