* switch to upstream's archived repository as homepage. * do not download tarball from GitHub - Add directly patches from Debian that aren't applid already, they include PCRE2 porting: * fix_passing_LDFLAGS_for_ccze-cssdump.patch * fix_capitalization_typo.patch * fix-national-encoding.patch * cross.patch * pcre2.patch * memory-leak.patch * uninitialised-value.patch - Switch to PCRE2 - Only run updated tests - Spec cleanup OBS-URL: https://build.opensuse.org/package/show/utilities/ccze?expand=0&rev=7
24 lines
447 B
Diff
24 lines
447 B
Diff
Description: Fix a possibly uninitialised value.
|
|
Author: Yavor Doganov <yavor@gnu.org>
|
|
Forwarded: no
|
|
Last-Update: 2023-12-06
|
|
---
|
|
|
|
--- ccze.orig/src/ccze-color.c
|
|
+++ ccze/src/ccze-color.c
|
|
@@ -459,9 +459,11 @@
|
|
size_t len;
|
|
struct stat stb;
|
|
|
|
- stat (fn, &stb);
|
|
- if (!S_ISREG (stb.st_mode))
|
|
- return;
|
|
+ if ((stat (fn, &stb)) == 0)
|
|
+ {
|
|
+ if (!S_ISREG (stb.st_mode))
|
|
+ return;
|
|
+ }
|
|
|
|
fp = fopen (fn, "r");
|
|
if (!fp)
|