|
|
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
|
|
char *p_folder = NULL, *a_folder = NULL;
|
|
|
/* timer: optional */
|
|
|
struct itimerspec its;
|
|
|
- timer_t timerid;
|
|
|
+ timer_t timerid = 0;
|
|
|
int ismounted = 0;
|
|
|
|
|
|
/* handle options */
|
|
|
@@ -136,6 +136,8 @@ int main(int argc, char *argv[])
|
|
|
}
|
|
|
|
|
|
printf("Folder path %s is %sa mount point.\n", path, (ismounted) ? "" : "*not* " );
|
|
|
+ if (timerid)
|
|
|
+ timer_delete(timerid);
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
}
|