This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
x3
/
caniadd
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Handle negative errcodes
dev
x3
2 years ago
parent
b9b4c2514d
commit
bb4da9ea31
Signed by:
x3
<sugarpanning@cock.li>
GPG Key ID:
7E9961E8AD0E240E
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/error.c
+ 1
- 1
src/error.c
View File
@@ -6,7 +6,7 @@ static const char *error_string[] = {
const char *error_to_string(enum error err)
{
if (err >= _ERR_COUNT)
if (err >= _ERR_COUNT
|| err < 0
)
return "ERR_UNKNOWN";
return error_string[err];
}
Write
Preview
Loading…
Cancel
Save