Commit 352db5a8 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed bug in logging


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@398 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 2e6eba61
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_log.c,v 1.10 2007-10-01 05:44:04 mtheo Exp $
* $Id: nmxp_log.c,v 1.11 2007-10-01 06:03:45 mtheo Exp $
*
*/
......@@ -60,10 +60,10 @@ void nmxp_log_init(int (*func_log)(char *), int (*func_log_err)(char *)) {
void nmxp_log_add(int (*func_log)(char *), int (*func_log_err)(char *)) {
if(func_log == NULL) {
if(func_log != NULL) {
p_func_log[n_func_log++] = func_log;
}
if(func_log_err == NULL) {
if(func_log_err != NULL) {
p_func_log_err[n_func_log_err++] = nmxp_log_stdout;
}
......
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxptool.c,v 1.78 2007-10-01 05:44:04 mtheo Exp $
* $Id: nmxptool.c,v 1.79 2007-10-01 06:03:45 mtheo Exp $
*
*/
......@@ -147,6 +147,8 @@ int main (int argc, char **argv) {
} else {
nmxp_log_init(nmxp_log_stdout, nmxp_log_stderr);
/* Check consistency of params */
if(nmxptool_check_params(&params) != 0) {
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment