summary refs log tree commit diff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2020-08-25 12:40:54 +0200
committerVladimír Čunát <v@cunat.cz>2020-08-25 12:40:54 +0200
commit4f157f45f5d9023ae67622bcc7cfd77574796b9c (patch)
treed600f7b581d168e344f44bd55122275a767a7acf
parent887e7b60367f2b3bdf01f88c69bdcc270947693e (diff)
parent27f0ca6670911a42349037ce41de5314dc585d33 (diff)
downloadnixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar.gz
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar.bz2
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar.lz
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar.xz
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.tar.zst
nixpkgs-4f157f45f5d9023ae67622bcc7cfd77574796b9c.zip
Merge #96259: stage-1 find-libs: initialise an empty array
-rw-r--r--nixos/modules/system/boot/stage-1.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index a04660fb56e..eee510d2c95 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -36,7 +36,7 @@ let
     set -euo pipefail
 
     declare -A seen
-    declare -a left
+    left=()
 
     patchelf="${pkgs.buildPackages.patchelf}/bin/patchelf"
 
@@ -48,7 +48,7 @@ let
       done
     }
 
-    add_needed $1
+    add_needed "$1"
 
     while [ ''${#left[@]} -ne 0 ]; do
       next=''${left[0]}