We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dda682 commit 07e37a1Copy full SHA for 07e37a1
src/include/homeobject/homeobject.hpp
@@ -22,7 +22,9 @@ struct device_info_t {
22
friend std::istream& operator>>(std::istream& input, device_info_t& di) {
23
std::string i_path, i_type;
24
std::getline(input, i_path, ':');
25
- std::getline(input, i_type);
+ if (input.peek() != EOF) {
26
+ std::getline(input, i_type);
27
+ }
28
di.path = std::filesystem::canonical(i_path);
29
if (i_type == "HDD") {
30
di.type = DevType::HDD;
0 commit comments