Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 506904 Details for
Bug 634104
net-analyzer/ntopng-3.0-r1 - src/AddressResolution.cpp:55:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to incorrect pointer integer comparison.
zero-pointer-cmp.patch (text/plain), 525 bytes, created by
Zoltan Puskas
on 2017-11-28 07:21:47 UTC
(
hide
)
Description:
Patch to incorrect pointer integer comparison.
Filename:
MIME Type:
Creator:
Zoltan Puskas
Created:
2017-11-28 07:21:47 UTC
Size:
525 bytes
patch
obsolete
>diff -Naur ntopng-3.0-orig/src/AddressResolution.cpp ntopng-3.0/src/AddressResolution.cpp >--- ntopng-3.0-orig/src/AddressResolution.cpp 2017-06-01 00:18:57.000000000 -0700 >+++ ntopng-3.0/src/AddressResolution.cpp 2017-11-27 23:13:50.158163187 -0800 >@@ -52,7 +52,7 @@ > u_int numeric_ip_len; > > snprintf(query, sizeof(query), "%s", _numeric_ip); >- if((at = strchr(query, '@')) != '\0') at[0] = '\0'; >+ if((at = strchr(query, '@')) != NULL) at[0] = '\0'; > numeric_ip = query; > numeric_ip_len = strlen(numeric_ip)-1; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 634104
: 506904