mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fixed some "uninitialized string" warnings
git-svn-id: https://svn.fhem.de/fhem/trunk@1702 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ac1eaa9afe
commit
2b6e3b924b
@ -216,6 +216,7 @@ RSS_color {
|
|||||||
sub
|
sub
|
||||||
RSS_itemText {
|
RSS_itemText {
|
||||||
my ($S,$x,$y,$text,%params)= @_;
|
my ($S,$x,$y,$text,%params)= @_;
|
||||||
|
return unless(defined($text));
|
||||||
($x,$y)= RSS_xy($S,$x,$y);
|
($x,$y)= RSS_xy($S,$x,$y);
|
||||||
$S->stringFT(RSS_color($S,$params{rgb}),$params{font},$params{pt},0,$x,$y,$text);
|
$S->stringFT(RSS_color($S,$params{rgb}),$params{font},$params{pt},0,$x,$y,$text);
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ sub addproperty {
|
|||||||
my ($key,$parts)= split(";", $property,2);
|
my ($key,$parts)= split(";", $property,2);
|
||||||
#main::debug "key= $key parts= $parts";
|
#main::debug "key= $key parts= $parts";
|
||||||
$parts= "" unless(defined($parts));
|
$parts= "" unless(defined($parts));
|
||||||
|
$parameter= "" unless(defined($parameter));
|
||||||
$self->{properties}{$key}= {
|
$self->{properties}{$key}= {
|
||||||
PARTS => "$parts",
|
PARTS => "$parts",
|
||||||
VALUE => "$parameter"
|
VALUE => "$parameter"
|
||||||
@ -336,7 +337,7 @@ sub fromVEvent {
|
|||||||
# weekly
|
# weekly
|
||||||
#
|
#
|
||||||
if($freq eq "WEEKLY") {
|
if($freq eq "WEEKLY") {
|
||||||
my @weekdays= split(",",$r{"BYDAY"});
|
# my @weekdays= split(",",$r{"BYDAY"});# BYDAY is not always set
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user