Commit 639b0b4
maybe_command(): account for undefined or empty argument
And thereby avoid uninitialized value warning.
As demonstrated in
cpan-testers/CPAN-Reporter#59 (comment),
it is possible to exercise subroutine maybe_command() without a defined
argument. We should preclude this from happening.
Test explicitly for return value in edge cases as well as absence of warnings.
Simplify code per Ilmari review:
https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/449/files1 parent 2216948 commit 639b0b4
2 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
| 2893 | + | |
| 2894 | + | |
2893 | 2895 | | |
2894 | 2896 | | |
2895 | 2897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
182 | 206 | | |
183 | 207 | | |
184 | 208 | | |
| |||
0 commit comments