From 75fde4863d8ad187dade6459aab2373e88307fb8 Mon Sep 17 00:00:00 2001 From: Matti Date: Tue, 12 Nov 2024 10:19:48 +0100 Subject: [PATCH] Add Early Return --- Aufg3/Phonebook.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Aufg3/Phonebook.cpp b/Aufg3/Phonebook.cpp index 75be466..62212c1 100644 --- a/Aufg3/Phonebook.cpp +++ b/Aufg3/Phonebook.cpp @@ -68,6 +68,7 @@ void readContactsFromFile(std::vector *Telefonbuch, std::string * if (!infile.is_open()) { std::cout << "File does not exist" << std::endl; + return; } std::string line;