[hackers] [sbase][PATCH] cron: fix parsing and '~' behavior

2024-02-28 Thread Elie Le Vaillant
In parserange(), we tested wether range was null, to test wether or not the repeat number was the end of the string (to test if we had something like "*/3/34"). But it is str that we should be testing, not range, as its value as a pointer doesn't mean anything in the current context. This makes

[hackers] [sbase][PATCH] cron: fix parsing and '~' behavior

2024-02-28 Thread Elie Le Vaillant
In parserange(), we tested wether range was null, to test wether or not the repeat number was the end of the string (to test if we had something like "*/3/34"). But it is str that we should be testing, not range, as its value as a pointer doesn't mean anything in the current context. This makes