1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 15:43:15 +02:00

BUILD : 1.7.21 (1369) BUGS : 685 NOTES : Fixed some small compiler warnings about buffer addresses always evaluating to true

git-svn-id: svn://svn.anope.org/anope/trunk@1369 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1084 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2008-02-05 13:51:50 +00:00
parent 4dd8573f20
commit 3ccf2f6e53
5 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -1410,7 +1410,7 @@ void charybdis_cmd_tmode(char *source, char *dest, const char *fmt, ...)
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
if (!buf) {
if (!*buf) {
return;
}
+1 -1
View File
@@ -1346,7 +1346,7 @@ void ratbox_cmd_tmode(char *source, char *dest, const char *fmt, ...)
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
if (!buf) {
if (!*buf) {
return;
}