diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ogAdmServer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ogAdmServer.c b/src/ogAdmServer.c index fa7e29a..0500496 100644 --- a/src/ogAdmServer.c +++ b/src/ogAdmServer.c @@ -61,7 +61,7 @@ bool actualizaConfiguracion(struct og_dbi *dbi, char *cfg, int ido) if (i == 0 && c == 1) { splitCadena(ptrDual, ptrCfg[0], '='); ser = ptrDual[1]; - if (strlen(ser) > 0) { + if (ser && strlen(ser) > 0) { // Solo actualizar si número de serie no existía. result = dbi_conn_queryf(dbi->conn, "UPDATE ordenadores SET numserie='%s'" |