From: Jani Nikula Date: Thu, 19 May 2016 17:32:48 +0000 (+0300) Subject: kernel-doc/rst: fix use of uninitialized value X-Git-Tag: v4.14-rc1~2679^2~37^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e64fa9c441ff273f39527f4014d3c3e724d321a;p=platform%2Fkernel%2Flinux-rpi.git kernel-doc/rst: fix use of uninitialized value I'm not quite sure why the errors below are happening, but this fixes them. Use of uninitialized value in string ne at ./scripts/kernel-doc line 1819, line 6494. Use of uninitialized value $_[0] in join or string at ./scripts/kernel-doc line 1759, line 6494. Signed-off-by: Jani Nikula --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 2fc8fad..babb374 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1803,7 +1803,8 @@ sub output_function_rst(%) { } else { print " ``$parameter``\n"; } - if ($args{'parameterdescs'}{$parameter_name} ne $undescribed) { + if (defined($args{'parameterdescs'}{$parameter_name}) && + $args{'parameterdescs'}{$parameter_name} ne $undescribed) { my $oldprefix = $lineprefix; $lineprefix = " "; output_highlight_rst($args{'parameterdescs'}{$parameter_name});