mirror of
https://github.com/likle/cwalk.git
synced 2026-10-28 09:44:01 +00:00
#2 fixed guess style call with empty string
This commit is contained in:
1 parent
96617f89fa
commit
27e19ebfe8
5 files changed
+20
-4
No files matched your search
+10
-1
@@ -1,6 +1,15 @@
|
||||
#include <cwalk.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int guess_empty_string()
|
||||
{
|
||||
if (cwk_path_guess_style("") != CWK_STYLE_UNIX) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
int guess_unguessable()
|
||||
{
|
||||
if (cwk_path_guess_style("myfile") != CWK_STYLE_UNIX) {
|
||||
@@ -93,4 +102,4 @@ int guess_windows_root()
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user