Skip to content

Commit

Permalink
password container: added initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Nov 20, 2018
1 parent 011c0f9 commit 9e5090d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/lib/s_password.h
Expand Up @@ -26,13 +26,18 @@

enum password_encoding
{
p_encoding_undefined,
p_encoding_clear,
p_encoding_md5
};

struct s_password {
enum password_encoding encoding;
char *value;
s_password() {
encoding = p_encoding_undefined;
value = nullptr;
}
};

#endif /* BAREOS_LIB_S_PASSWORD_H_ */

0 comments on commit 9e5090d

Please sign in to comment.