Skip to content
  • Marc G. Fournier's avatar
    22bd99e4
    From: hankin <hankin@consultco.com> · 22bd99e4
    Marc G. Fournier authored
    a while back I posted a patch for pg_ident, the patch worked but I didn't
    diagnose the problem properly.
    on my compiler(gcc2.7.2) this compiles with no errors...
    
    char buf[1000]; if(buf != '\0') {
    
    ...but it doesn't compare '\0' with the first char of buf.
    22bd99e4
    From: hankin <hankin@consultco.com>
    Marc G. Fournier authored
    a while back I posted a patch for pg_ident, the patch worked but I didn't
    diagnose the problem properly.
    on my compiler(gcc2.7.2) this compiles with no errors...
    
    char buf[1000]; if(buf != '\0') {
    
    ...but it doesn't compare '\0' with the first char of buf.
Loading