projects
/
file
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2bc369
)
If we have an error, don't append anything to the buffer.
author
Christos Zoulas
<christos@zoulas.com>
Tue, 3 Sep 2013 08:31:48 +0000
(08:31 +0000)
committer
Christos Zoulas
<christos@zoulas.com>
Tue, 3 Sep 2013 08:31:48 +0000
(08:31 +0000)
src/funcs.c
patch
|
blob
|
history
diff --git
a/src/funcs.c
b/src/funcs.c
index ff55b79c3b170dcca62f29426c7f16cb0995c684..15edbf62b313e3597b2b97123c7befa9d477d01e 100644
(file)
--- a/
src/funcs.c
+++ b/
src/funcs.c
@@
-27,7
+27,7
@@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.6
1 2012/10/30 23:11:51 christos
Exp $")
+FILE_RCSID("@(#)$File: funcs.c,v 1.6
2 2013/07/21 21:06:41 rrt
Exp $")
#endif /* lint */
#include "magic.h"
@@
-58,6
+58,8
@@
file_vprintf(struct magic_set *ms, const char *fmt, va_list ap)
int len;
char *buf, *newstr;
+ if (ms->event_flags & EVENT_HAD_ERR)
+ return 0;
len = vasprintf(&buf, fmt, ap);
if (len < 0)
goto out;