Make reality agree with the comment.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 1 Dec 2001 18:45:32 +0000 (18:45 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 1 Dec 2001 18:45:32 +0000 (18:45 +0000)
p4raw-id: //depot/perl@13411

ext/I18N/Langinfo/Langinfo.xs

index 314e891..47223d7 100644 (file)
@@ -20,7 +20,7 @@ langinfo(code)
   CODE:
 #ifdef HAS_NL_LANGINFO
        char *s;
-       if (code) { /* bold assumption: all valid langinfo codes > 0 */
+       if (code > 0) { /* bold assumption: all valid langinfo codes > 0 */
 #ifdef _MAXSTRMSG
            if (code >= _MAXSTRMSG
                RETVAL = &PL_sv_undef;