Skip to content
Snippets Groups Projects
Commit 59c50b49 authored by Johan Schön's avatar Johan Schön
Browse files

Dividing the empty string with something caused problems in newer Pikes

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.14
parent 07074814
No related branches found
No related tags found
No related merge requests found
...@@ -248,8 +248,8 @@ class client { ...@@ -248,8 +248,8 @@ class client {
etc_hosts = ([ "localhost":"127.0.0.1" ]); etc_hosts = ([ "localhost":"127.0.0.1" ]);
if (raw) { if (raw && sizeof(raw)) {
foreach(raw/"\n", string line) { foreach(raw/"\n"-({""}), string line) {
// Handle comments, and split the line on white-space // Handle comments, and split the line on white-space
line = lower_case(replace((line/"#")[0], "\t", " ")); line = lower_case(replace((line/"#")[0], "\t", " "));
array arr = (line/" ") - ({ "" }); array arr = (line/" ") - ({ "" });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment