diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2018-10-31 18:00:06 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-01-17 13:18:09 +0100 |
commit | aff4cfdd5f14ff7c2f85989160a4ebda3e0e7dfd (patch) | |
tree | 287ae17f5b1289219041fbe7c08121ebaee14488 /sources | |
parent | 2427e9d8fe9039f4c6a9b103381463f1d1ed0ec8 (diff) |
#580 simplify check for empty string
Diffstat (limited to 'sources')
-rw-r--r-- | sources/ogAdmServer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index b8ca3a5..1a5ac04 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -71,31 +71,31 @@ bool tomaConfiguracion(char* filecfg) { line = fgets(buf, sizeof(buf), fcfg); } - if (servidoradm[0] == (char) NULL) { + if (!servidoradm[0]) { og_log(4, FALSE); // Falta parámetro SERVIDORADM return (FALSE); } - if (puerto[0] == (char) NULL) { + if (!puerto[0]) { og_log(5, FALSE); // Falta parámetro PUERTO return (FALSE); } - if (usuario[0] == (char) NULL) { + if (!usuario[0]) { og_log(6, FALSE); // Falta parámetro USUARIO return (FALSE); } - if (pasguor[0] == (char) NULL) { + if (!pasguor[0]) { og_log(7, FALSE); // Falta parámetro PASSWORD return (FALSE); } - if (datasource[0] == (char) NULL) { + if (!datasource[0]) { og_log(8, FALSE); // Falta parámetro DATASOURCE return (FALSE); } - if (catalog[0] == (char) NULL) { + if (!catalog[0]) { og_log(9, FALSE); // Falta parámetro CATALOG return (FALSE); } - if (aulaup[0] == (char) NULL) + if (!aulaup[0]) strcpy(aulaup, "0"); // Por defecto el conmutador de registro automático esta en off return (TRUE); |