msg bug + better exit
This commit is contained in:
parent
08fcf513cc
commit
b0983ab18b
@ -55,7 +55,7 @@ IdxValue *idxvalues;
|
|||||||
|
|
||||||
#if DEBUG_LEVEL
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d %p)\n", __func__, ptr_glob,
|
fprintf(stderr, ">>> %s ( %p %p %d %p)\n", __func__, ptr_glob,
|
||||||
ptr_idxval, method, average);
|
ptr_idxval, method, p_average);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (0==method && verbosity) {
|
if (0==method && verbosity) {
|
||||||
@ -140,8 +140,8 @@ foo = glob(pattern, 0, NULL, &globbuf);
|
|||||||
fprintf(stderr, " globbing '%s' -> %d, %d files found\n",
|
fprintf(stderr, " globbing '%s' -> %d, %d files found\n",
|
||||||
pattern, foo, (int)globbuf.gl_pathc);
|
pattern, foo, (int)globbuf.gl_pathc);
|
||||||
if (0 == globbuf.gl_pathc) {
|
if (0 == globbuf.gl_pathc) {
|
||||||
fprintf(stderr, "%s : no file found, aborting\n", __func__);
|
fprintf(stderr, "%s : no file found, ABEND\n", __func__);
|
||||||
return -1;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
idx_values = NULL;
|
idx_values = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user