summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/db-convert.c2
-rw-r--r--src/tools/db-convert.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c
index c70f41ecd..4a82d0f82 100644
--- a/src/tools/db-convert.c
+++ b/src/tools/db-convert.c
@@ -458,7 +458,7 @@ int main(int argc, char *argv[])
HostCore *hc = findHostCore(na->nick);
if (hc)
{
- fs << "MD VHOST " << hc->creator << " " << hc->time << " " << hc->vHost << " :" << hc->vIdent << std::endl;
+ fs << "MD VHOST " << hc->creator << " " << hc->time << " " << hc->vHost << " :" << (hc->vIdent ? hc->vIdent : "") << std::endl;
}
}
}
diff --git a/src/tools/db-convert.h b/src/tools/db-convert.h
index 1ebeec9f4..914202d3a 100644
--- a/src/tools/db-convert.h
+++ b/src/tools/db-convert.h
@@ -786,7 +786,7 @@ void alpha_insert_chan(ChannelInfo * ci)
HostCore *findHostCore(char *nick)
{
- for (HostCore *hc = head; head; head = head->next)
+ for (HostCore *hc = head; hc; hc = hc->next)
{
if (nick && hc->nick && !mystricmp(hc->nick, nick))
return hc;