]> git.proxmox.com Git - pmg-api.git/commitdiff
proxy: initialize the theme variable with an empty string
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 23 Mar 2023 15:44:53 +0000 (16:44 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Mar 2023 16:19:35 +0000 (17:19 +0100)
this removes a warning that was previously present due to using an
uninitialized variable.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/PMG/Service/pmgproxy.pm

index 310519a427ee57d36560660274961e782ca7d614..5bd9de21072a2316794936b10e1d84c367187f35 100755 (executable)
@@ -199,7 +199,7 @@ sub get_index {
        $mobile = $args->{mobile} ? 1 : 0;
     }
 
-    my $theme;
+    my $theme = "";
 
     if (my $cookie = $r->header('Cookie')) {
        if (my $newlang = ($cookie =~ /(?:^|\s)PMGLangCookie=([^;]*)/)[0]) {