#2 fixed guess style call with empty string

This commit is contained in:
Leonard Iklé committed 2019-06-10 20:31:56 +02:00
1 parent 96617f89fa
commit 27e19ebfe8
5 files changed
+20 -4

No files matched your search

+10 -1
View File
@@ -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;
}
}