Bug 7535 - list-bad-rules uninitialized value
Summary: list-bad-rules uninitialized value
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Masses (show other bugs)
Version: unspecified
Hardware: PC OpenBSD
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 18:16 UTC by Giovanni Bechis
Modified: 2018-03-15 07:30 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
Uninitialized value fix patch None Giovanni Bechis [HasCLA]
uninitialized value fix patch None Giovanni Bechis [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Bechis 2018-01-18 18:16:20 UTC
Created attachment 5510 [details]
Uninitialized value fix

The rule-qa/list-bad-rules gives some warnings every now and then:
-------------------------------------------------------------------
Use of uninitialized value $src in hash element at masses/rule-qa/list-bad-rules line 224.
Use of uninitialized value $src in hash element at masses/rule-qa/list-bad-rules line 306.
-------------------------------------------------------------------

Patch added to fix those warnings.
Comment 1 Giovanni Bechis 2018-03-14 09:09:44 UTC
Created attachment 5558 [details]
uninitialized value fix

If there are rules present in score but not in .cf files a warning is printed,
shut up the warning.
Comment 2 Giovanni Bechis 2018-03-15 07:30:32 UTC
Committed in r1826770.